傾聽委託回調:
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
,當你得到消息
[tActualSide removeFromSuperview];
引述蘋果文檔(注意 「setContentOffset:動畫:」 參考):
scrollViewDidEndScrollingAnimation:
Tells the delegate when a scrolling animation in the scroll view concludes.
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
Parameters
scrollView
The scroll-view object that is performing the scrolling animation.
Discussion
The scroll view calls this method at the end of its implementations of the UIScrollView and setContentOffset:animated: and scrollRectToVisible:animated: methods, but only if animations are requested.
Availability
Available in iOS 2.0 and later.
Declared In
UIScrollView.h
對!謝謝! :) – 2012-07-30 14:54:44