iOS最简快速保存图片到沙盒
2019-02-27 本文已影响0人
楼船夜雪_WL
NSString *jpgPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Test.jpg"]; [UIImageJPEGRepresentation(croppedImage,1.0) writeToFile:jpgPath atomically:YES];
NSString *jpgPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Test.jpg"]; [UIImageJPEGRepresentation(croppedImage,1.0) writeToFile:jpgPath atomically:YES];