[英]change color of RootViewController in UISplitView
Like the question says. 就像问题说的那样。 I have a splitview with detail and root views.
我有一个带有详细信息和根视图的splitview。 How do I go about changing the color of the navigation bar in the root view?
如何在根视图中更改导航栏的颜色? Have tried:
试过:
self.navigationController.view.backgroundColor = [UIColor colorWithRed:59/256 green:115/256 blue:185/256 alpha:1.0];
in the root view viewDidLoad:
method. 在根视图
viewDidLoad:
方法中。 Clearly did not work, anyone know the proper way to do this? 显然没有用,有人知道这样做的正确方法吗? I can't seem to find it anywhere...
我似乎在任何地方都找不到...
myController.NavigationBar.TintColor
应该可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.