I have drawn into a CGContext of a UIView.
- (void)drawRect:(CGRect)rect { [self drawInContext:UIGraphicsGetCurrentContext()] }
I wo
UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); NSData *imageData = UIImagePNGRepresentation(image); [imageData writeToFile:@"image.png"];