In my application, I have a UISearchBar under the UINavigationBar , so it is always displayed to the user. In this case, I had to set the contentInset with an additional 44px, so the UIScrollView will scroll under the UISearchBar (exactly the same as in Contacts.app) . And there would be no problem with static UITableView , but in my case I have to reload its contents, switch to UISearchDisplayController , etc. Therefore, when I call:
[self.tableView setContentInset:UIEdgeInsetsMake(108, 0, 0, 0)]
Everything works until, for example, I pull to update ... (for this I use SSPullToRefresh ).
So my question is: How can I set the contentInset permanently, so I would not have to worry about any changes happening to the data inside the UITableView ?
ios objective-c uitableview uiscrollview pull-to-refresh
cojoj Feb 25 '14 at 16:54 2014-02-25 16:54
source share