热情发带

文章
3
资源
0
加入时间
3年2月3天

获取CGContextRef的几种方法

1.继承UIView,重写drawRect方法 CGContextRef ctx = UIGraphicsGetCurrentContext();2.根据创建好的CALayer获取当前Layer的Context- (CGContextRef) MyCreateBitmapContext:(CALayer*)layer{ int pixelsWide = layer....