自定义导航栏按钮 标题
2015-07-10 10:18
162 查看
自定义导航栏按钮:
1.自定义按钮(创建一个按钮,按钮位置是固定的,只需修改大小即可)
2.自定义按钮图片(仅仅修改按钮背景图片)
3.修改右侧按钮同上,设置self.navigationItem.rightBarButtonItem即可
4.自定义导航栏标题字体和颜色
[self.navigationController.navigationBar
setTitleTextAttributes:
@{NSFontAttributeName:[UIFont
systemFontOfSize:22],
NSForegroundColorAttributeName:[UIColor
whiteColor]}];
1.自定义按钮(创建一个按钮,按钮位置是固定的,只需修改大小即可)
2.自定义按钮图片(仅仅修改按钮背景图片)
3.修改右侧按钮同上,设置self.navigationItem.rightBarButtonItem即可
4.自定义导航栏标题字体和颜色
[self.navigationController.navigationBar
setTitleTextAttributes:
@{NSFontAttributeName:[UIFont
systemFontOfSize:22],
NSForegroundColorAttributeName:[UIColor
whiteColor]}];
相关文章推荐
- DWR中获得session,request,response的方法(转)
- tomcat outofmemory
- Java单例模式的七种写法
- 正则表达式30分钟入门教程
- IDE启动报错
- Leetcode 234 Palindrome Linked List
- 嵌套查询,或者递归查询
- c 字符串操作函数strtok、strstr、strchr
- 7月7日全球域名商(国际域名)解析新增保有量TOP20
- Cisco设备参数总结
- MATLAB求多目标优化问题——fminimax
- LA3902 - Network
- eclipse建立aidl文件报错Error executing aidl: Return code 1
- C#三层中的分页
- 股民学堂:以下六种情况果断卖出!不能死捂股票不放
- 修复损坏的WMI(转)
- C# 编写Windows服务并设置为“允许服务与桌面交互”
- MySQL 编码设置
- Windows如何打包Qt程序
- springMVC 3.1文档