Perform a task (in iOS) after animation has finished

后端 未结 4 715
离开以前
离开以前 2021-02-04 07:11

So I have this line of code:

[tableView setContentOffset:point animated:YES];

and I want to run another piece of code after the animation ends. My a

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 08:07

    UITableView inherits setContentOffset:animated: from its superclass, UIScrollView. Check out the scrollViewDidEndScrollingAnimation: method of UIScrollViewDelegate.

提交回复
热议问题