< Zurück

02.12.2012 23:17:00 • Categories: Objective-C • Tags: UIImage, Objective-C

Objective-C: save image in home directory

//save picture
NSString *filename = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/pic.png"];
[UIImagePNGRepresentation([info objectForKey:@"UIImagePickerControllerOriginalImage"]) writeToFile:filename atomically:YES];
 

< Zurück | ^ nach oben