デリゲート コールバックをリッスンします。
- (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