本文介绍了UINavigationController交互式流行手势不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我在iOS 7应用程序中构建了一个导航控制器。 titleView是可见的,以及它自己的后退按钮和导航栏。出于某种原因,交互式弹出手势(从左边缘轻扫)不起作用。什么都没发生。当我记录手势时,它不是零。我需要做些什么来启用此功能吗?什么可能导致它不起作用?
So I have a navigation controller in my built for iOS 7 app. The titleView is visible, as well as the back button and navigation bar its self. For some reason, the interactive pop gesture (swipe from the left edge) isn't working. Nothing happens. When I log the gesture, it is not nil. Is there anything special I have to do to enable this functionality? What could cause it not to work?
推荐答案
呃,看起来我只需要设置手势委托并实现以下内容:
Eh, looks like I just had to set the gesture delegate and implement the following:
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
这篇关于UINavigationController交互式流行手势不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!