我提到了这个问题:How to detect when a UIScrollView has finished scrolling当UITableView完成滚动时可以通知它吗?
UITablewView是的UIScrollView的子类,而我的UITableView委托确实,当我用手滚动表得到- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
消息。
但是,当我拨打- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated
滚动表时,我没有收到scrollViewDidEndDecelerating
消息。我打电话给scrollRowToIndexPath...
方法animated:YES
。
这是一个错误/ API的限制(在iPhone SDK 3.1.3上)还是我错过了另一种方式来做到这一点?
刚开发的跟踪滚动的解决方案结束了应用广泛:http://stackoverflow.com/a/42705702/440168 – k06a 2017-03-09 21:27:29