我是否需要释放从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);
。     
已邀请:
没有。 请参阅创建规则与获取规则:   创建规则      Core Foundation函数具有指示您拥有返回对象的名称:      在名称中嵌入“创建”的对象创建函数;   对象复制函数,名称中嵌入了“复制”。      [...]      获取规则      如果您从任何Core Foundation函数接收对象而不是创建或复制功能 - 例如Get函数 - 您不拥有它[...]     

要回复问题请先登录注册