iphone - detecting user touch on UIScrollView -
i wanted detect when user scrolls , removes finger screen. easiast this? thinking of using:
-(void)touchesended:(nsset *)touches withevent:(uievent *)event; { nslog(@"touch ended"); }
but put in uiviewcontroller, isn't called
how using uiscrollviewdelegate function
(void)scrollviewdidenddragging:(uiscrollview *)scrollview willdecelerate:(bool)decelerate
this gets called when user lifts finger after dragging scroll view. see here: uiscrollviewdelegate documentation
Comments
Post a Comment