0

I'm using MWFSlideNavigationViewController Slide Navigation View Controller in the Up and Down directions only to reveal a secondary view.

I'd like to use left and right swipes for other things. It turns out UISwipeGestureRecognizer does not seem to work on the main view (the primary). I've created the Swipe Gesture Recognizer from the Nib file. On the contrary UITapGestureRecognizer works perfectly even though I've created in the same conditions.

So which tweaks should I do in order to be able to swipe left and right?

4

1 回答 1

0

问题已解决:

事实证明,我必须添加以下行以允许Pan Gesture(在原始代码中使用)使用Swipe Gesture我不想添加的内容。

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
    return YES;
}

感谢以下答案:

UISwipeGestureRecognizer 没有触发

是否可以同时使用 UIPanGesture 和 UISwipeGesture?

于 2013-08-29T12:13:53.487 回答