Comments (7)
是什么情况下需要直接用这个?你可以:
self.rt_navigationController.rt_viewControllers;
重写 getter
尚不清楚会不会造成隐患
from rtrootnavigationcontroller.
其实我也注意到了,重写getter确实容易造成问题,我看了您的源码,我准备再封装一层然后使用self.rt_navigationController.rt_viewControllers,我还想问一个问题,就是我在viewcontroller(不是navigationcontroller)的子类中重写了- (UIStatusBarStyle)preferredStatusBarStyle方法,但是不会调用,但我看您的调用没问题,不知您知道是什么原因吗,还望不吝赐教!
from rtrootnavigationcontroller.
你的 viewController
子类放在哪个里面?
from rtrootnavigationcontroller.
我是说你在RTContainerController类中重写了- (UIStatusBarStyle)preferredStatusBarStyle方法会调用,而我自己写了一个UIViewController的子类,里面也重写了该方法但不会调用(我的工程还没引入您的项目,我只是单纯的请教问题,希望您不要见谅),我一直不明白原因,所以想请教一下。
截图是您的代码,这个方法是会自动调用的
下面是我的代码,但该方法不会被调用
from rtrootnavigationcontroller.
- 在
Info.plist
中设置 view controller based status bar 为 YES - 如果你的 VC 在系统的 Navigation 中,它不会被调到,Navigation 接管了
from rtrootnavigationcontroller.
@rickytan 谢谢你,我找到原因了,其实你的根本没有设置view controller based status bar 为 YES
但你的RTContainerController中的- (UIStatusBarStyle)preferredStatusBarStyle方法会调用,是因为你的navigation bar是隐藏的,我实验了一下,如果我把自己写的navigation bar隐藏掉也是可以的,谢谢你!
from rtrootnavigationcontroller.
参考 #9
from rtrootnavigationcontroller.
Related Issues (20)
- 屏幕下面的tabbar未隐藏。 HOT 1
- 关于iOS14的适配工作 HOT 2
- 横竖屏切换出现跟系统UINavigationController不一致的效果 HOT 3
- iOS14上面popToRoot有问题 HOT 5
- RTRootNavigationController和网易云信SDK一起使用会导致返回按钮消失,也无法设置。
- 不维护了???
- TabbarController跳转 HOT 1
- 关于自定义转场动画的疑问
- iOS 15上导航栏会变成白色 HOT 5
- 关于iOS 15适配 HOT 3
- iOS15导航问题 HOT 5
- iOS15 如果配置了全局的导航器背景,后面针对某一个导航器修改背景没有效果 HOT 6
- 与ZFPlayer一起使用的问题 HOT 2
- 设置背景色不起作用,闪一下变回白色 HOT 1
- [self.navigationController pushViewController:self animated:YES] HOT 1
- iOS 16 使用UIWindowSceneGeometryPreferencesIOS切换横竖屏无效 HOT 5
- Memory leak: RTContainerController, RTContainerNavigationController HOT 1
- Will this be more cumbersome?
- iOS16+ Carsh HOT 3
- pop gesture bug on RTL layout
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 rtrootnavigationcontroller.