Generic UITableView keyboard resizing algorithm

2020-02-23 02:05发布

I've searched a lot for code that resizes the table view to accomodate for keyboard showing and hiding, but almost every single post i came across assumes that the table view is taking the entire view of its view controller. I have an iPad application where the table view is only taking part of the screen. What's the correct way to resize the table view in this case? (all the code in the posts i've mentioned above fails)

7条回答
可以哭但决不认输i
2楼-- · 2020-02-23 02:36

Check out this project, it's drag and drop so just declare the tablview as type TPKeyboardAvoidingTableView

查看更多
登录 后发表回答