-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在原来的代码中使用到self.navigationController.viewControllers #13
Comments
是什么情况下需要直接用这个?你可以: self.rt_navigationController.rt_viewControllers; 重写 |
其实我也注意到了,重写getter确实容易造成问题,我看了您的源码,我准备再封装一层然后使用self.rt_navigationController.rt_viewControllers,我还想问一个问题,就是我在viewcontroller(不是navigationcontroller)的子类中重写了- (UIStatusBarStyle)preferredStatusBarStyle方法,但是不会调用,但我看您的调用没问题,不知您知道是什么原因吗,还望不吝赐教! |
你的 |
|
@rickytan 谢谢你,我找到原因了,其实你的根本没有设置view controller based status bar 为 YES |
参考 #9 |
@rickytan 你好,我在原来的代码中使用到self.navigationController.viewControllers;直接使用您的这个项目好像会出问题,self.navigationController.viewControllers;返回的数组中正常情况下只会包含当前的vc,是不是需要重写一下viewControllers的getter方法,谢谢回答!
The text was updated successfully, but these errors were encountered: