ios - UITableView inside view container cut of when keyboard shown -


i have view container view , other controls. container view has static table, , in table cells have text fields. when keyboard shows cut off content of table. can't seem scroll table see rest of content.

an example of layout is:

  • main view: height device height
    • scroll view: device height content size 800
      • container view: height 600
        • table view: height 600
      • button one: height 45
      • button two: height 45

i tried registering keyboard notification , adding inset manually, didn't work. checked viewwillappear() , has super call (suggested fix in question).

the problem not text field not visible. problem once keyboard shown, elements @ bottom of view not visible , scrolling not work (scrolls not way down).

ok, after trying few things had change content size of scroll view (subtract keyboard size) instead of changing insets in table view controller when keyboard displayed. did trick.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -