Reputation: 7190
I have my scroll view span the whole height of the iPhone. Thus, the iPhone's semi-transparent status bar is overlayed on top of the scroll view. I've added iOS6's UIRefreshControl to the scroll view, like so:
UIRefreshControl *pullToRefresh = [[UIRefreshControl alloc] init];
[pullToRefresh addTarget:self action:@selector(refresh) forControlEvents:UIControlEventValueChanged];
self.refreshControl = pullToRefresh;
[self.scrollView addSubview:refreshControl];
Everything functionally works great. However, the pull to refresh icon doesn't pull down low enough to clear the iPhone status bar. This looks junky, like so:
I've tried setting the frame/bounds on the UIRefreshControl to reposition the refresh icon, but no luck. Any ideas would be much appreciated!
Upvotes: 2
Views: 1279
Reputation: 8245
Try setting a contentInset of 20 px at the top. That is a property on UIScrollView.
Upvotes: 2