我提到了這個問題: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