我是否需要释放从UIGraphicsGetCurrentContext()返回的上下文?
我在用
CGContextRef
。
UIGraphicsBeginImageContext(self.drawImage.frame.size);
CGContextRef context=UIGraphicsGetCurrentContext();
CGContextSetRGBStrokeColor(context,0.0f,0.0f,0.0f,1.0f);
UIGraphicsEndImageContext();
CGContextRelease(context);
我是否需要在上面打电话给CGContextRelease(Context);
。
没有找到相关结果
已邀请:
1 个回复
豹芜澈