摘要:
一、图形上下文栈1.自定义一个MJView,将默认View的Class设置为MJView2.实现drawRect:方法-(void)drawRect:(CGRect)rect{//1.获得上下文CGContextRef ctx = UIGraphicsGetCurrentContext();//将当... 阅读全文
摘要:
#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... 阅读全文