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