Hide keyboard when scroll UITableView

前端 未结 8 2252
借酒劲吻你
借酒劲吻你 2020-12-02 05:47

In my app i want hide keyboard when i start scrolling UITableView. I search about this in internet, and most answer is subclassing UITableView (http://stackoverflow.com/ques

8条回答
  •  一个人的身影
    2020-12-02 05:53

    Working solution without writing single line of code in your Controller:

    As your question is to handle the hide keyboard with one condition only (on scroll). But here I am recommending one solution to handle textfield and keyboard together which works like charm for UIViewController, UITableView and UIScrollView. The interesting fact is that You do not need to write any single line of code.

    Here you go: TPKeyboardAvoiding - An awesome solution to handle keyboard and scroll

提交回复
热议问题