监听委托回调:
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
当您收到该消息时
[tActualSide removeFromSuperview];
引用 Apple 文档(注意“setContentOffset:animated:”参考):
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