Giter VIP home page Giter VIP logo

Comments (5)

JazysYu avatar JazysYu commented on July 24, 2024

第一个问题你可以全局搜索替换哈,工程搜索然后选replace。第二个问题你需要给想要导航栏的控制器设置jz_wantsNavigationVisible=true.
最近会写一篇api文档,详细说明一下。

from jznavigationextension.

SuooL avatar SuooL commented on July 24, 2024

现在遇到同 issue30类似的问题,在 viewControllerA 中,设置jz_wantsNavigationBarVisible=NO,以及navigationBarHidden=YES,然后 push 进入viewControllerB 中,此时 B 默认隐藏导航条,就算在push B之前设置jz_wantsNavigationBarVisible=YES,以及navigationBarHidden=NO,push 进入 B 确实显示了,但是在拖动viewControllerB 的时候还是会出现 B 的NavigationBar消失的问题。

from jznavigationextension.

SuooL avatar SuooL commented on July 24, 2024

这里有个疑问是每个 viewController 的NavigationBar不都是相对独立的么?为什么前面一个 viewController的NavigationBar 属性会影响下一个 push 进来的 viewController 的状态呢?这里是不是我理解错了呢?

from jznavigationextension.

SuooL avatar SuooL commented on July 24, 2024

问题已经解决,这里我的理解是:

  1. 旧版的时候,我在APPDelegate 中通过- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated统一设置navigationController的属性,没有上述问题。
    但是新版的这样子做不行了。
  2. 新版的设计貌似是想希望要在每个UIViewController设置说明:
    self.jz_wantsNavigationBarVisible = NO; self.navigationController.navigationBarHidden = YES; self.navigationController.jz_fullScreenInteractivePopGestureEnabled = NO;
    特别的如上面我的问题,我在viewControllerA中设置了隐藏,那么在 push 进来的每个 viewController 中都要设置对应的属性。不能够在统一的设置了。

from jznavigationextension.

JazysYu avatar JazysYu commented on July 24, 2024

首先感谢你的Issue哈,写的很详细。关于新版与旧版之间的变化,之后我会总结成文档,简单说明一下

from jznavigationextension.

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.