您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页导航栏相关设置

导航栏相关设置

来源:二三娱乐

//设置导航栏信号区颜色

配置信息如下图:View controller-based status bar appearance

self.navigationController.navigationBar.barStyle = UIBarStyleBlack;

//设置导航栏背景色(分类方法)

[self.navigationController.navigationBar st_setBackgroundColor:[AppColor colorWithAlphaComponent:1]];

//设置导航栏字体颜色

[self.navigationController.navigationBar  setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];

//自动布局 距离导航栏的高度

make.top.mas_equalTo(self.mas_topLayoutGuide).mas_offset(20);

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

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

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