samedi 29 novembre 2014

Fail to adjust search results controller view bottom content inset if tab bar is presented

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:



  1. Focus on the search field and perform some search ('o' for example)

  2. Hide the keyboard by pressing 'Search' button

  3. Try to scroll the results up to the bottom


The bottom of the table view content is hiding under the tab bar.




Aucun commentaire:

Enregistrer un commentaire