设置导航栏的背景颜色和字体
2015-12-28 19:26
369 查看
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"OffLineNavView"] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,nil]];
[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:24],
NSForegroundColorAttributeName:[UIColor whiteColor]}];
[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,nil]];
[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:24],
NSForegroundColorAttributeName:[UIColor whiteColor]}];
相关文章推荐
- 使用Rational Rose进行用例图和活动图
- LINQ排序,用order by 子句进行排序
- 深入浅出SFINAE
- 矢量图形栅格化
- mysql group 陷阱
- Json---基础概念
- Json---基础概念
- wordPress开发-学习历程(第一篇)
- tinyos学习笔记8--TestLinkLocal例程代码说明
- Hbase存储详解
- 地理编码
- ftrace在mips上的验证
- 安装运行Hadoop
- arcgis中map属性方法
- one problems:start scrapy for EI Capitan
- 68、TSPL指令集(标签打印机)
- linux运维必须知道的几个常用命令
- Android之NDK开发
- POJ.2182.Lost Cows 非递归线段树 0ms
- GDB---coredump分析