views:

43

answers:

1

I am using CGContextRef.

UIGraphicsBeginImageContext(self.drawImage.frame.size);
CGContextRef context=UIGraphicsGetCurrentContext();
CGContextSetRGBStrokeColor(context,0.0f,0.0f,0.0f,1.0f);
UIGraphicsEndImageContext();
CGContextRelease(context);

Do I need to call CGContextRelease(Context); in the above one.

+2  A: 

No. See The Create Rule.

Nikolai Ruhe