利用 Objetive-c Category 特性 更换 UINavigationBar 背景
来源:互联网 发布:western条带分析软件 编辑:程序博客网 时间:2024/04/29 17:13
@implementation UINavigationBar (UINavigationBarCategory)- (void)drawRect:(CGRect)rect {//颜色填充//UIColor *color = [UIColor redColor];//CGContextRef context = UIGraphicsGetCurrentContext();//CGContextSetFillColor(context, CGColorGetComponents( [color CGColor]));//CGContextFillRect(context, rect);//self.tintColor = color;//图片填充UIColor *color = [UIColor colorWithRed:46.0f/255.0f green:87.0f/255.0f blue:29.0f/255.0f alpha:1.0f];UIImage *img= [UIImage imageNamed: @"bg.png"];[img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];self.tintColor = color;}@end
目前按钮无法设置透明只有纯色背景。
- 利用 Objetive-c Category 特性 更换 UINavigationBar 背景
- 利用Java处理图片,更换背景
- objetive c 学习:实例变量
- objetive-c 谓词学习笔记
- Object-C中的动态特性(Category类别)
- 修改UINavigationBar的背景
- 自定义UINavigationBar的背景
- 动态修改UINavigationBar背景
- 自定义UINavigationBar背景
- 修改UINavigationbar背景
- UINavigationBar 背景设置
- 动态修改UINavigationBar背景
- UINavigationBar背景颜色
- Objective-C ,ios,iphone开发基础:Category(分类,类别,范畴) ,UINavigationBar设置背景图片适配
- Objetive-C的随堂笔记
- Using Swift with Cocoa and Objetive-C
- 【黑马程序员】Objetive-C 对象详解 一
- objetive-C中 self 与super 精解
- IE9的css hack
- android (12)
- 如何在RH下查看gtk版本
- VS开发工具与调试技巧整理
- 软件安装和部署
- 利用 Objetive-c Category 特性 更换 UINavigationBar 背景
- Android Selector 与 Shape 基本用法
- Java笔记——静态内部类/内部类
- UITabbarController
- android string.xml文件中的整型和string型代替
- easyUI布局篇使用jquery easy UI的panel和layout实现界面的自适用窗口
- 将DataSet绑定到DropDownList
- 怎样判断远程图片是否存在?
- rg.springframework.orm.hibernate3.LocalDataSourceConnectionProvider