Reputation: 2490
I am trying to do a contentInset on an NSScrollView the same way as iOS in a UIScrollView. There is no method to do this though. Is there anyway to achieve this? this picture should describe what I am trying to do:
If anyone knows of a solution I would absolutely love to hear!! It's driving me nuts
Upvotes: 13
Views: 3140
Reputation: 789
You should try something like this
scrollView.automaticallyAdjustsContentInsets = NO;
scrollView.contentInsets = NSEdgeInsetsMake(offset, 0, 0, 0);
Upvotes: 24