Comments (5)
第一个问题你可以全局搜索替换哈,工程搜索然后选replace。第二个问题你需要给想要导航栏的控制器设置jz_wantsNavigationVisible=true.
最近会写一篇api文档,详细说明一下。
from jznavigationextension.
现在遇到同 issue30类似的问题,在 viewControllerA 中,设置jz_wantsNavigationBarVisible=NO,以及navigationBarHidden=YES,然后 push 进入viewControllerB 中,此时 B 默认隐藏导航条,就算在push B之前设置jz_wantsNavigationBarVisible=YES,以及navigationBarHidden=NO,push 进入 B 确实显示了,但是在拖动viewControllerB 的时候还是会出现 B 的NavigationBar消失的问题。
from jznavigationextension.
这里有个疑问是每个 viewController 的NavigationBar不都是相对独立的么?为什么前面一个 viewController的NavigationBar 属性会影响下一个 push 进来的 viewController 的状态呢?这里是不是我理解错了呢?
from jznavigationextension.
问题已经解决,这里我的理解是:
- 旧版的时候,我在APPDelegate 中通过
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
统一设置navigationController的属性,没有上述问题。
但是新版的这样子做不行了。 - 新版的设计貌似是想希望要在每个UIViewController设置说明:
self.jz_wantsNavigationBarVisible = NO; self.navigationController.navigationBarHidden = YES; self.navigationController.jz_fullScreenInteractivePopGestureEnabled = NO;
特别的如上面我的问题,我在viewControllerA中设置了隐藏,那么在 push 进来的每个 viewController 中都要设置对应的属性。不能够在统一的设置了。
from jznavigationextension.
首先感谢你的Issue哈,写的很详细。关于新版与旧版之间的变化,之后我会总结成文档,简单说明一下
from jznavigationextension.
Related Issues (20)
- 能加入shadowhidden和shadowalpha功能吗
- 作者你好,请问现在iOS 11有办法解决导航栏高度的问题吗?
- 在9.0 系统下必挂
- 访问相机、相册会crash闪退/报错解决方法 HOT 3
- 这个库还未不维护呢?
- ios11 出现返回按钮偏移,请大神更新
- 请问有禁止侧滑的方法吗?
- Crash on iOS 13/Xcode 11 beta, because private API usage HOT 3
- 这个库是否已经不维护了
- Thread 1: "Access to _UIBarBackground's _backgroundEffectView ivar is prohibited. This is an application bug" HOT 1
- 这里有一个bug,设置 self.navigationBar.barTintColor = [UIColor blueColor]; HOT 6
- 最新版本拍照闪退问题 HOT 1
- jz_viewDidLoad方法中self.delegate = nil会导致一系列问题,如系统相册 HOT 1
- 右滑突然松手的时候 导航栏背景会消失
- 亲测iOS11.2系统高度改不了,在iOS9的手机上没问题
- 侧滑返回时,滑动一点松手,当前控制器导航栏消失
- 侧滑一半导行栏变白问题 HOT 2
- 侧滑返回时,滑动一点松手,当前控制器导航栏消失 HOT 3
- ios11上navigationBarHeight设置失效,ios10以下可以
- 这样写需要考虑一下UINavigationController子类的感受吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jznavigationextension.