Hide keyboard when scroll UITableView

前端 未结 8 2227
借酒劲吻你
借酒劲吻你 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 06:05

    You can do this right in Interface Builder. Select your UITableView and open the Attributes Inspector. In the Scroll View section set the Keyboard field to Dismiss on Drag.

    enter image description here

提交回复
热议问题