美文网首页
关于在具体VC更改导航栏和状态栏颜色

关于在具体VC更改导航栏和状态栏颜色

作者: NateLam | 来源:发表于2017-09-08 10:48 被阅读26次

导航栏相关 感谢 http://blog.csdn.net/mad1989/article/details/41516743

self.navigationController.navigationBar.barTintColor = THEME_COLOR;

//左右按钮字体颜色
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];


//title字体大小和颜色
[self.navigationController.navigationBar setTitleTextAttributes:@{
NSForegroundColorAttributeName:[UIColor whiteColor],
NSFontAttributeName:NAVIGATIONBAR_TITLE_FONT
}];
                                                                                                           
                                                                                                                    
#关于状态栏颜色
//在plist文件里添加  View controller-based status bar appearance == NO 默认是YES
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;

相关文章

网友评论

      本文标题:关于在具体VC更改导航栏和状态栏颜色

      本文链接:https://www.haomeiwen.com/subject/npftrxtx.html