Autolayout Constraint - Keyboard

后端 未结 4 1181
迷失自我
迷失自我 2020-12-22 19:05

Im stuck trying to animate a table view smoothly which has an autolayout contraint. I have a reference to the constraint \"keyboardHeight\" in my .h and have linked this up

4条回答
  •  难免孤独
    2020-12-22 19:33

    If you're using UITableViewController, keyboard size should be automatically accommodated by iOS to adjust the contentInsets. But if your tableView is inside a UIViewController, you probably wanted to use this:

    KeyboardLayoutConstraint in the Spring framework. Simplest solution I've found so far. KeyboardLayoutConstraint

提交回复
热议问题