我正在使用scrollToRowAtIndexPath在UITableView中进行程序化滚动,但此方法不会触发scrollViewDidEndDecelerating。有什么好方法可以检测此滚动何时完成?
我之所以问这个问题是因为我的代码如下:
我之所以问这个问题是因为我的代码如下:
[tableView1 scrollToRowAtIndexPath:indexPath1 atScrollPosition:UITableViewScrollPositionBottom animated:YES];
[tableView2 scrollToRowAtIndexPath:indexPath2 atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
// Additional methods here
有时候,滚动尚未完成就会触发其他方法。我希望使用比 performSelector: afterDelay: 更加可靠的方法。