forum

Home / DeveloperSection / Forums / GestureRecognizer not working with UIScrollView in Objective-C?

GestureRecognizer not working with UIScrollView in Objective-C?

Anonymous User 2273 20-Feb-2016
I have created an app using UIScrollView and I also added a gesture recognizer but calling method in gesture recognizer is not working.
this is the code:
UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(doubbleTapHandler:)];
[self.scrollView addGestureRecognizer:doubleTap];
and this is the implementation:

-(void)doubleTapHandler:(UITapGestureRecognizer*)recognizer
{
//here I am doing some UIRelatedTasks
}
Can any one tell me how can I solve this issue?

Updated on 22-Feb-2016
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By