Thursday, June 14, 2012

Export UIImage to file

Export to file:
- (void) exportImageToFile:(NSString*) path image:(UIImage*) image {
    NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation(image)];
    [imageData writeToFile:path atomically:YES];
}

No comments:

Post a Comment