zoukankan      html  css  js  c++  java
  • 控制器的左侧滑返回手势

    开启此功能-----

    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated];
        
        // 在此决定是否开启左侧侧滑返回功能
        if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
            self.navigationController.interactivePopGestureRecognizer.delegate = nil;
            self.navigationController.interactivePopGestureRecognizer.enabled = self.navigationController.viewControllers.count - 1;
        }
    }

    关闭此功能-----

    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated];
        
        // 在此决定是否开启左侧侧滑返回功能
        if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
            self.navigationController.interactivePopGestureRecognizer.enabled = NO;
        }
    }
  • 相关阅读:
    在IDEA中使用maven
    使用IDEA创建JavaWeb项目 部署本地tomcat并运行
    Java
    c++
    Vue学习
    svn 小程序地址
    SVN 上传代码
    eclipse插件 --js
    https抓包
    eclipse 断点位置发生莫名其妙的位移
  • 原文地址:https://www.cnblogs.com/cchHers/p/8043256.html
Copyright © 2011-2022 走看看