2015年8月21日
摘要: 一、图形上下文栈1.自定义一个MJView,将默认View的Class设置为MJView2.实现drawRect:方法-(void)drawRect:(CGRect)rect{//1.获得上下文CGContextRef ctx = UIGraphicsGetCurrentContext();//将当... 阅读全文
posted @ 2015-08-21 18:43 Marshall_Yin 阅读(376) 评论(0) 推荐(0) 编辑
摘要: #define MJColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]1.自定义一个MJHumanView,默认View的Class设置为MJHumanView2.实现drawR... 阅读全文
posted @ 2015-08-21 12:55 Marshall_Yin 阅读(1580) 评论(0) 推荐(0) 编辑