앱을 개발 중이고 으로 다른 UIViewControllers
을 스크롤하고 싶습니다. 모든 것이 작동하지만 해결책을 찾을 수없는 한 가지가 있습니다. 제스처 인식기의 UIView 부분을 어떻게 제외합니까?
self.view
의 일부를 제외시켰다 가능한 경우 지금 알고 싶은이
- (void)viewDidLoad {
[super viewDidLoad];
UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeLeft)];
[swipeLeft setDirection:UISwipeGestureRecognizerDirectionLeft];
[self.view addGestureRecognizer:swipeLeft];
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight)];
[swipeRight setDirection:UISwipeGestureRecognizerDirectionRight];
[self.view addGestureRecognizer:swipeRight];
}
처럼 UIGestureRecognizers
를 추가합니다. UISwitch
번으로이 작업을 수행하고 싶습니다.
누군가 나를 도울 수 있습니까?
안부,
루카스는
그래서 UISwitch 위의 다른 UIView와 그 주변의 장소를 추가해야합니까? –
UISwitch를 해당보기에 넣을 수 있습니다. – Zalykr
Ok, thnx! 나는 그것을 시도 할 것이다. –