How to detect scrolling of UITableView?

前端 未结 4 2007
无人共我
无人共我 2021-02-04 05:05

There is a similar question to this but answer is very general, vague.( Detecting UITableView scrolling ) Please don\'t dismiss. I am looking for concrete solution.

I ha

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 05:40

    You don't need to subclass UITableView to track scrolling. Your UITableViewDelegate can serve as UIScrollViewDelegate as well. So in your delegate class you can implement -scrollViewWillBeginDragging: or whatever UIScrollViewDelegate method you need in your situation. (as actually suggested in the question you mention)

提交回复
热议问题