文章标题
2016-01-11 01:33
369 查看
NavigationBar中通过code方式对背景颜色和title字体颜色更改
背景颜色:[objc] view plaincopy在CODE上查看代码片派生到我的代码片
[self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:20/255.0 green:155/255.0 blue:213/255.0 alpha:1.0]];
字体属性修改:
[objc] view plaincopy在CODE上查看代码片派生到我的代码片
[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0], UITextAttributeTextColor, [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8], UITextAttributeTextShadowColor, [NSValue valueWithUIOffset:UIOffsetMake(0, -1)], UITextAttributeTextShadowOffset, [UIFont fontWithName:@"Arial-Bold" size:0.0], UITextAttributeFont,nil]];
相关文章推荐
- 多线程临界区
- pxe 简介以及 cobbler安装配置自动化
- leetcode笔记:Pascal's Triangle
- 自定义注解以及反射得到当前的调用方法
- 软件工程总结(添加自己提出的问题)
- 多线程原子操作的简单示例
- find查找后 xargs 复制文件
- const 和 #define区别
- AndroidSupport兼容包无法关联源码的解决办法
- [看书日记20160111]没心情啊。。Messenger,AIDL
- [leetcode] 138. Copy List with Random Pointer 解题报告
- openstack 入门1
- easyui扩展-日期范围选择.
- Objective-c的内存管理MRC与ARC
- C++读取name values形式Config 配置文件
- sdoi最优图像image(网络流)
- 个人阅读作业
- linux中shell数组的使用和建立
- 我想做个公众号——当今社会的自我营销
- 个人阅读作业Week17