How to detect scrolling of UITableView?

前端 未结 4 1902
无人共我
无人共我 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:36

    To expand on Vladimir's answer, this is how I implemented this solution:

    In .h file:

    @interface MyViewController : UIViewController  
    

    In .m file:

    - (void)scrollViewWillBeginDragging:(UIScrollView *)activeScrollView {
        //logic here
    }
    

提交回复
热议问题