0
제 프로젝트에서 나는 왼쪽 움직임을위한 스 와이프 제스처 액션이 필요하며 맨 아래 방향에 대한 팬 제스처 액션이 필요합니다. 두 제스처를 모두 입력하면 팬 제스처 만 호출됩니다. 누구든지이 솔루션을 가지고 있습니까? 팬을위한팬 제스처 및 스 와이프 제스처
UISwipeGestureRecognizer *rightSwipe = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(goToPreviosSong)];
rightSwipe.direction = UISwipeGestureRecognizerDirectionRight;
[self.view addGestureRecognizer:rightSwipe];
UISwipeGestureRecognizer *leftSwipe = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(goToNextSong)];
rightSwipe.direction = UISwipeGestureRecognizerDirectionLeft;
[self.view addGestureRecognizer:leftSwipe];
내가 다른 제스처 인식기가 실행되지 않은 경우 제스처를 인식하는 코드
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panAction:)];
[self.view addGestureRecognizer:edgePanGesture];