我有这个手势滑动方法,我想从另一个方法调用
[self performSelector:@selector(handleSwipeGesture:) withObject:nil afterDelay:10];
我无法弄清楚要放入@selector()的语法
任何帮助表示赞赏。这是我的代码:
- (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];
}
}