The app is UITabBar-based. Search bar is embedded in navigation controller. Although the value of automaticallyAdjustsScrollViewInsets property is YES, the .bottom contentInset of the results controller`s scroll view does not respect tab bar whatsoever.
Stripped-down version of UICatalog sample with demonstration is here: SearchResultsIncorrectContentInsetsDemo on GitHub
Steps to reproduce:
- Focus on the search field and perform some search ('o' for example)
- Hide the keyboard by pressing 'Search' button
- Try to scroll the results up to the bottom
The bottom of the table view content is hiding under the tab bar.
edgesForExtendedLayout = UIRectEdgeAll
the bottom inset is correct when the keyboard is hidden and is too large (= there's white space below the last cell) when the keyboard is displayed. – Ortwin Gentz