Giter Club home page Giter Club logo

Comments (3)

lancelot9527 avatar lancelot9527 commented on June 8, 2024 1

同样出现界面卡死这个问题,发生情况为,首页根控制器,push到一个控制器,并左滑返回。多次上述操作,再次push的时候会出现界面卡死,查看视图层级则已经到下一个控制器的界面,但真机上则是卡死的。 iOS 10.3.1 GKNav: 2.1.6 ,使用 GKNav: 2.0.8不会有这样的问题

from gknavigationbarviewcontroller.

QuintGao avatar QuintGao commented on June 8, 2024

能否提供demo,我这边试了下没问题。

from gknavigationbarviewcontroller.

JsonFu avatar JsonFu commented on June 8, 2024

这个库的Demo中是没问题的。我的解决办法在:GKDelegateHandler.m中 增加一个判断,下面else中。
(但是,我的另一个项目中却没有出现这个问题)

  • (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer{
    if (self.navigationController.gk_openScrollLeftPush) {
    // 开启了左滑push功能
    }else {
    // 忽略根控制器
    if (self.navigationController.viewControllers.count <= 1) {
    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    return NO;
    }
    }
    }

from gknavigationbarviewcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.