UINavigationController 交互式弹出手势不起作用? [英] UINavigationController Interactive Pop Gesture Not Working?

查看:20
本文介绍了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 交互式弹出手势不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆