美文网首页Swiftui
iOS保存图片到本地笔记

iOS保存图片到本地笔记

作者: 数字d | 来源:发表于2021-11-13 11:49 被阅读0次
    UIImageWriteToSavedPhotosAlbum([[BDFaceImageShow sharedInstance] getSuccessImage], self, @selector(image:didFinishSavingWithError:contextInfo:), NULL);
    
    
    //- (void)image: (UIImage *) image didFinishSavingWithError: (NSError *) error contextInfo: (void *) contextInfo
    //{
    //    NSString *msg = nil ;
    //    if(error != NULL){
    //        msg = @"保存图片失败" ;
    //    }else{
    //        msg = @"保存图片成功" ;
    //    }
    //
    //    UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:msg preferredStyle:UIAlertControllerStyleAlert];
    //    [self showViewController:alert sender:nil];
    //}
    

    相关文章

      网友评论

        本文标题:iOS保存图片到本地笔记

        本文链接:https://www.haomeiwen.com/subject/keaazltx.html