Hi,
I used
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)];
[self.view addGestureRecognizer:singleTap];
- (void)handleSingleTap:(UIGestureRecognizer *)gestureRecognizer {
UIView* view = gestureRecognizer.view;
CGPoint loc = [gestureRecognizer locationInView:view];
}
But this gave me an error at CGPoint loc = [gestureRecognizer locationInView:view];
Why???