1、iOS 代码
+ (void)saveTextureToLocal:(NSString*)type{
NSArray *imageArray = [type componentsSeparatedByString:@","];
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:imageArray[1] options:NSDataBase64DecodingIgnoreUnknownCharacters];
UIImage *image = [UIImage imageWithData:imageData];
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
};
2、修改Info.plist配置
添加 Privacy - Photo Library Additions Usage Description 权限