My project based on touch event in scrollview. im using the following code but it shows an error. gesture undeclared. how to declare gesture please tell me,
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(singleTapGestureCaptured:)];
[scrollView addGestureRecognizer:singleTap];
- (void)singleTapGestureCaptured:(UITapGestureRecognizer *)touch
{
CGPoint touchPoint=[gesture locationInView:scrollView];
}
Sorry I didn’t look at your code carefully
use this.
You dont have any variable named gesture.