Detecting custom touch on UIScrollView

Basically I wanted to detect when the user scrolls and removes their finger from the screen. What is the easiast for this? I thought about using:

-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
{
    NSLog(@"TOUCH ENDED");
}

      

but i put this in my UIViewController but it is not called

+3
ios objective-c iphone ipad


source to share


1 answer


How to use the UIScrollViewDelegate function

(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate

      



This is called when the user lifts their finger after dragging the scroll. See here: UIScrollViewDelegate Documentation

+6


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics