iOS rootViewController侧滑返回卡住的解决方法
来源:互联网 发布:淘宝主营率大于80 编辑:程序博客网 时间:2024/04/28 04:53
第一步:在你的navigationController的viewDidLoad方法里面:
- (void)viewDidLoad {
[super viewDidLoad];
self.interactivePopGestureRecognizer.delegate = self;
}
第二步:
- ( BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
if ( gestureRecognizer == self.interactivePopGestureRecognizer )
{
if ( self.visibleViewController == [self.viewControllers objectAtIndex:0] )//让第一个子控制器侧滑时不产生作用
{
return NO;
}
}
return YES;
}
0 0
- iOS rootViewController侧滑返回卡住的解决方法
- ios侧滑返回:完美解决 interactivePopGestureRecognizer 卡住的
- ios -- swift -- 侧滑返回时 页面卡住不动
- [ios]使用self.view.window.rootViewController presentViewControllert跳转后的返回
- yum卡住/rpm -qa卡住的解决方法
- QEventLoop会卡住的解决方法
- 在ios 下获取 rootviewcontroller 的版本不同的问题
- Ogre1.9 for iOS 如何使用自定义的RootViewController
- iOS开发注销操作后更改rootViewController的问题
- iOS didFinishLaunchingWithOptions方法里获取storyBoard的rootViewController
- Mac_Android_Sdk卡住不更新的解决方法
- Mac_Android_Sdk卡住不更新的解决方法
- SIM卡套卡住的解决方法
- Git push的时候卡住解决方法
- HBase写入操作卡住长时间不返回的原因分析
- HBase读取数据卡住长时间不返回的原因分析
- ubuntu 升级卡住解决方法
- 怎么更改navigationController的rootViewController
- 从对象创建和引用小议解耦
- 一款办公软件
- 【Western Digital】固件区学习之28模块
- 36. Valid Sudoku
- JSON 格式总结
- iOS rootViewController侧滑返回卡住的解决方法
- The connection to adb is down, and a severe error has occured 错误解决
- Cocos2dx中的TestCPP运行Box2dTest
- Android5.x新特性之 Toolbar和Theme的使用
- 第三章例题
- 51单片机系列知识15--HD7279(1)
- 只用一台memcache服务器可以吗
- spring mvc 获取所有的controller中的url
- 程序员的故事 009 在小公司工作与在大公司工作的区别