I am developing Camera App. I want to detect the number of taps that user has tapped. How can I get number of taps from the user.
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapResponder:)];
tap.numberOfTapsRequired =1;
[self.view addGestureRecognizer:tap];
-(void)tapResponder: (UITapGestureRecognizer *)sender{
NSLog(@"Double Tapped");
}
Also, I want to limit user to tap only 50 taps. Here i can able to fit the taps instead of 1 but, how to detect how many taps that the user has tapped and stop the camera. Please help me to do this. I don't have much knowledge about the tap gesture.