全屏查看时候保存图片到本地

    xiaoxiao2021-04-19  164

    点击查看大图的时候,会有保存图片的需求,这时候可以直接调这个方法。

    //图片保存到本地 - (void)loadImageFinished:(UIImage *)image{ UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), (__bridge void *)self); } - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo{ XWAlerLoginView *xw = [[XWAlerLoginView alloc]initWithTitle:@"图片存储成功!"]; [xw show]; }

    转载请注明原文地址: https://ju.6miu.com/read-676015.html

    最新回复(0)