を使用して別のメソッドから呼び出したいこのジェスチャースワイプメソッドがあります
[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];
}
}