0
有一些方法我可以這樣做:保存CoreGraphics繪圖操作?
@implementation MyView的
- (void)drawRect:(CGRect)rect
{
// Get the thing I'm supposed to draw (CGImageRef, pattern, etc.) and draw it
// i.e. not real code
CGContextDrawWhatever(self.objectThatHoldsDrawing.drawing);
}
感謝您的回覆,我正在考慮一些謊言。你能給我一個CGLayer的例子嗎? – DevDevDev 2010-02-17 02:07:55
查看http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_layers/dq_layers.html – MrMage 2010-02-17 10:10:04