您好,欢迎来到华佗小知识。
搜索
您的当前位置:首页关于在具体VC更改导航栏和状态栏颜色

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

来源:华佗小知识

导航栏相关 感谢

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;

Copyright © 2019- huatuo0.cn 版权所有 湘ICP备2023017654号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务