Comments (9)
方便提供一下demo吗,可以帮助我排查问题,谢谢。
from zxnavigationbar.
我在测试项目中测试是正常的,可能受其他因素影响,比如preferredStatusBarStyle被覆盖等,提供demo可以帮助我快速定位和处理此问题。
from zxnavigationbar.
demo 不太方便提供,是公司项目里的,关键代码 在我的界面 老代码 用到了
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
我从我的界面跳转新写的界面,,,继承你的父类controller,
self.zx_navStatusBarStyle = ZXNavStatusBarStyleLight; 在当前控制器,不管事,怎么解决???
-(UIStatusBarStyle)preferredStatusBarStyle{
return UIStatusBarStyleLightContent;
}
这两个方法 都不管事,请问这是怎么回事?
from zxnavigationbar.
我的个人中心界面 老代码是这样的 :
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[self.navigationController setNavigationBarHidden:NO animated:animated];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
}
然后跳转的子模块的继承你的 ZXNavigationBarController 控制器,调用以上方法无效
from zxnavigationbar.
我按照您上面描述进行设置,未发现异常,您可以下载一下这个项目的demo,在这个项目基础上改来复现这个问题哈,感谢。
from zxnavigationbar.
我发现原因了,因为我项目View controller-based status bar appearance 设置的是NO,用你设置状态栏的方法 所以不管事,用你的框架,项目的这个属性,必须设置YES吗
from zxnavigationbar.
感谢反馈,新版本已修复设置了View controller-based status bar appearance为NO时无法控制状态栏颜色的问题,请更新至1.4.0。
from zxnavigationbar.
可以,我也碰到了同样的问题。用其他方式解决了。现在这样方便多了
from zxnavigationbar.
感谢,我稍后用新的版本试一下.
from zxnavigationbar.
Related Issues (20)
- 如何增大backButton的触发面积. HOT 1
- 我想在当前页面禁止pop手势,或者是拦截返回手势,设置以下无效, HOT 2
- 提个建议 HOT 1
- BackButtonHandlerProtocol 协议名重复 HOT 1
- TableViewController的显示有问题。 HOT 2
- 请问侧滑返回能增加像系统导航那种渐变吗 HOT 1
- TableViewController还是有比较严重的问题 HOT 2
- 能不能ZXNavigationBarController加个分类,就是不继承它,也可以使用相关的属性 HOT 1
- safeArea布局问题
- zx_setPopGestureCompatibleScrollView返回手势冲突解决问题 HOT 3
- 如果viewcontroller里面并排两个tableview,第二个tableview就会到导航栏下面去了 HOT 1
- 可以适配RTL吗
- self.zx_navBar.zx_y = 200;发现无法改变zx_navBar的位置
- 好像对TableViewController失效了 HOT 3
- 写的很好哦 HOT 1
- 请问现在有适配iOS 15了么?
- 麻烦适配下iOS 13的一些属性获取,比如keyWindow,statusBarFrame这些 HOT 1
- IQKeyboardManager冲突 HOT 1
- It looks very convenient, but I don't know how to use it HOT 1
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 zxnavigationbar.