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


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







All Articles