UIScrollView tracking
@property(nonatomic, readonly, getter=isTracking) BOOL tracking
Discussion of [UIScrollView tracking]
The value of this property is YES if the user has touched the content view but might not have yet have started dragging it.
UIScrollView tracking example.
- (void)scrollViewDidScroll:(UIScrollView *) theScrollView {
if (theScrollView.dragging || theScrollView.tracking)
[self.delegate scrolling:[theScrollView contentOffSet]];
}
if (theScrollView.dragging || theScrollView.tracking)
[self.delegate scrolling:[theScrollView contentOffSet]];
}
Example of [UIScrollView tracking].
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if(scrollView.isTracking){
//do something
}
}
{
if(scrollView.isTracking){
//do something
}
}