Swift - UITableView scroll event

后端 未结 4 1011
深忆病人
深忆病人 2021-02-18 14:22

I was wondering how to detect if the UITableView is scrolled (up or down). I want to hide the keyboard when the UITableView is scrolled with self

4条回答
  •  情书的邮戳
    2021-02-18 15:00

    You can set property of UITable view (XCode 7+)

    In Storyboard:
    In Storyboard

    in Code:

    tableView.keyboardDismissMode = .onDrag
    

提交回复
热议问题