z-j-w

- (void)saveImageToPhotos:(NSData*)gifData

{

    /***注意先倒入库 #import <AssetsLibrary/AssetsLibrary.h>

     ***/

    ALAssetsLibrary *al = [[ALAssetsLibrary alloc] init];

    [al writeImageDataToSavedPhotosAlbum:gifData metadata:nil completionBlock:^(NSURL *assetURL, NSError *error) {

        if(error == NULL){

 

           [self showTipsViewWithTitle:@"已保存至相册" withImage:@"37x-Checkmark.png" afterDelay:2];

        }

    }];

}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-22
  • 2021-11-09
  • 2021-04-10
  • 2021-10-18
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案