UIKeyboard avoidance and Auto Layout

后端 未结 6 847
梦谈多话
梦谈多话 2021-01-31 09:16

Given the focus on Auto Layout in iOS 6, and the recommendation by Apple engineers (see WWDC 2012 videos) that we no longer manipulate a views\' frame directly, how wou

6条回答
  •  误落风尘
    2021-01-31 09:58

    For auto layout with keyboard case, I use static table view. This keeps your codes much simpler and not need to keep track of keyboard height. One thing I learned about table view is to keep each table row as narrow as possible. If you put too many UIs vertically in one row, you may get keyboard overlap.

提交回复
热议问题