UISwipeGestureRecognizerDirectionRight 메서드를 사용하여 응용 프로그램 내에서보기를 변경하고 View Controller의 주 파일에서 다음 코드를 사용했지만 별표 뒤에 제스처를 정의하고 다음과 같이 선언해야합니다. 이 빌드 오류 상태 : "swipeGesture는 선언되지 않은"UITouchGestures 선언?
-(void)createGestureRecognizers {
UISwipeGestureRecognizerDirectionRight * swipeGesture = [[UISwipeGestureRecognizerDirectionRight alloc]
initWithTarget:self
action:@selector (handleSwipeGestureRight:)];
[self.theView addGestureRecognizer:swipeGesture];
[swipeGesture release];
}
-(IBAction)handleSwipeGestureRight {
NC2ViewController *second2 =[[NC2ViewController alloc] initWithNibName:@"NC2ViewController" bundle:nil];
second2.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:second2 animated:YES];
[second2 release];
}
그래서 내 질문에 내가 헤더 파일에 별표 후 "swipeGesture"을 선언 않거나 내가 뭔가 잘못을했을 어떻게?
당신
감사합니다. 덕분에 많은 도움이되었습니다. :) – AppleFanBoy