改变导航栏的颜色 ios6.0 ios7
来源:互联网 发布:华为大数据案例分析 编辑:程序博客网 时间:2024/05/01 07:14
ios6
[[UINavigationBar appearance] setBackgroundImage:[self createImageWithColor:[UIColor yellowColor]] forBarMetrics:UIBarMetricsDefault];
//这个是颜色转化图片-(UIImage *)createImageWithColor:(UIColor *)color{ CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [color CGColor]); CGContextFillRect(context, rect); UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return theImage;}
ios 7
[[UINavigationBar appearance] setBarTintColor:[UIColor yellowColor]];
0 0
- 改变导航栏的颜色 ios6.0 ios7
- 关于导航栏的定制 ios7 ios6
- ios7导航栏有ios6的效果
- iOS6和iOS7的导航栏区别
- IOS7改变状态栏文字的颜色以及导航栏背景颜色
- IOS7改变状态栏文字的颜色以及导航栏背景颜色
- iOS7中改变导航栏的标题
- 改变导航栏的颜色
- 改变导航栏的颜色
- ios7 修改导航栏的颜色
- ios7 修改导航栏的颜色
- IOS6 IOS7 UITableViewCell的层级改变
- 改变导航栏颜色
- IOS6、IOS7导航栏适配问题
- 得到正确的颜色IOS7半透明导航栏
- 改变Three20导航栏颜色
- 改变Three20导航栏颜色
- 改变状态栏、导航栏颜色
- 数据库索引的作用和优点缺点
- JSP中的路径
- node.js之util
- Ubuntu Serve12.04 下java导出图片乱码
- Mysql 1067 错误原因
- 改变导航栏的颜色 ios6.0 ios7
- window下hadoop-2.2.0应用程序开发_java
- Android构建boot.img(一):root目录与ramdisk.img的生成
- 第一章—介绍原子性,条件同步以及自旋和阻塞的区别
- 索引的十一种功能
- HDU_4971_A simple brute force problem.(最大权闭合图)
- ORA-01552 :非系统表空间 'xxxx'不能使用系统回退段
- FAT学习笔记(五)——FAQ
- Android构建boot.img(二):kernel的拷贝与打包