hello,
i am working with gesture recognizers in my app. The app crashes whenever there is any gesture - tap or swipe. here is my code for detecting tap:
The app being written is for iPad using iOS 4.3.2
can anyone point out where the problem is...
many thanks
i am working with gesture recognizers in my app. The app crashes whenever there is any gesture - tap or swipe. here is my code for detecting tap:
Code:
-(void)viewDidLoad{
UITapGestureRecognizer *recognizer;
recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapHandler:)];
recognizer.numberOfTapsRequired=1;
recognizer.numberOfTouchesRequired=1;
[self.view addGestureRecognizer:recognizer];
[recognizer release];
[super viewDidLoad];
}
- (void) tapHandler: (UITapGestureRecognizer *)gesture {
NSLog(@"Tap ...");
}
The app being written is for iPad using iOS 4.3.2
can anyone point out where the problem is...
many thanks