简体   繁体   English

更改MasterDetailview Xcode 4.2中的导航栏样式

[英]change navigation-bar style in MasterDetailview Xcode 4.2

I have Xcode 4.2, and I selected the project template Master Detail view without Storybord. 我有Xcode 4.2,并且选择了没有Storybord的项目模板“主从视图”。 So how can I set navigation style and where should I add the code for this? 那么,如何设置导航样式以及应该在哪里添加代码呢? Please give me suggestion. 请给我建议。

//set navigation bar tint color
[self.navigationController.navigationBar setTintColor:[UIColor blueColor]];

//or to set its style
[self.navigationController.navigationBar setBarStyle:UIBarStyleDefault];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM