I have this gesture swipe method that I want to call from another method using
[self performSelector:@selector(handleSwipeGesture:) withObject:nil afterDelay:10];
I can't figure out the syntax to put in the @selector()
any help is appreciated. here's my code:
- (IBAction)handleSwipeGesture:(UISwipeGestureRecognizer *)sender {
if(sender.direction == UISwipeGestureRecognizerDirectionLeft) {
NSLog(@"swipe left");
TutorialMenuViewController *tutorialMenuViewController = [[TutorialMenuViewController alloc]
initWithNibName:@"TutorialMenuViewController" bundle:nil];
[self.navigationController pushViewController:tutorialMenuViewController animated:YES];
[tutorialMenuViewController release];
}
}
nil
object. So the if statement looks like this and evaluates to false[[nil direction] == UISwipeGestureRecognizerDirectionLeft]
– Paul.s