Swift - UITableView scroll event

后端 未结 4 1023
深忆病人
深忆病人 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条回答
  •  -上瘾入骨i
    2021-02-18 14:57

    You can add UIScrollViewDelegate. After that you can implement scrollViewDidScroll method.

提交回复
热议问题