Я использую SWRevealViewController
от John-Lluch. Мне нужно использовать жест панорамирования для просмотра боковых панелей, и я использую пролистывание для просмотра моих предыдущих и следующих статей. Однако жест панорамирования можно только обнаружить.
ОБНОВЛЕНО: мой жест смахивания работал, если я отключил жест панорамирования.
Жест панорамирования
[self.view addGestureRecognizer:self.revealViewController.panGestureRecognizer];
Жест смахивания
UISwipeGestureRecognizer *left = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeLeft:)] autorelease];
left.direction = UISwipeGestureRecognizerDirectionLeft;
UISwipeGestureRecognizer *right = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight:)] autorelease];
right.direction = UISwipeGestureRecognizerDirectionRight;
[self.view addGestureRecognizer:left];
[self.view addGestureRecognizer:right];
-(IBAction) SwipeMe : (UISwipeGestureRecognizer *) recognizer{ NSLog(@"swiped"); }
просто свяжите его со своим представлением. - person Watsche   schedule 23.07.2014