- (void)loadImageFinished:(UIImage *)image
{
UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), (__bridge void *)self);
}
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
[Utility createHUDToast:@"保存成功"];
NSLog(@"image = %@, error = %@, contextInfo = %@", image, error, contextInfo);
}
崩溃原因: 没有在info.plist中配置