iOS 11系统之前需要配置Plist 文件,但是iOS 11之后就不需要了!
下面是常用的存储图片到相册的方法验证有效
- (void)loadImageFinished:(UIImage *)image{
UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), (__bridge void *)self);
}
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo{
NSLog(@"image = %@, error = %@, contextInfo = %@", image, error, contextInfo);
}
网友评论