0
est-il un moyen que je peux faire quelque chose comme:Sauvegarde des actions de dessin 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);
}
Merci pour la réponse, je pensais à quelque chose liek. Pouvez-vous me donner un exemple avec CGLayer? – DevDevDev
Jetez un oeil à http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_layers/dq_layers.html – MrMage