I draw a background image in a view with the following code:
CGContextRef currentContext = UIGraphicsGetCurrentContext(); CGContextSaveGState(currentContext);
UIImage *image = [UIImage imageNamed:@"background.jpg"]; [image drawAsPatternInRect:rect];
CGContextRestoreGState(currentContext);
This works well. But when I change the size of that view animated the drawn image is scaled until it get's redraw. How can I ignore this transformation during the animation?