Comments (7)
直接改 root navigation controller ,然后设置 transferNavigationBarAttributes
设置为 YES 也可以的
from rtrootnavigationcontroller.
嗯,但是我觉得这样可能用起来并不是很方便,因为App里很有可能会present其他的NavigationController,这样的话就得设置每个NavigationController的样式。UINavigationBar appearance是设置默认样式的,我觉得应该支持一下比较好。
您的这个库正式我所需要的,因为我的APP已经完成了,如果要使用的话,可能改动会比较大,我还在评估修改量。非常感谢!
from rtrootnavigationcontroller.
如果你用的 storyboard ,只要改个 Class 名 😄
有空再看,本应该直接支持的
from rtrootnavigationcontroller.
我大概找到原因了,是在transferNavigationBarAttributes=YES时,给self.navigationBar设置样式时没有考虑appearance里的值,我改成这样就可以了,不知道代码严不严谨,还望指教:
self.navigationBar.tintColor = [UINavigationBar appearance].tintColor ?: self.navigationController.navigationBar.tintColor;
from rtrootnavigationcontroller.
那你设置为 NO 试试?
from rtrootnavigationcontroller.
我试过了,是直接支持的,你要在最开始设置 appearance
from rtrootnavigationcontroller.
第一个有用,后来 push 的没用,已修复
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.