ios save image to album

- (void)savePhotoToAlbum

{

    ZoomScrollView *zoomScrollView = (ZoomScrollView*)[self.scrollView viewWithTag:BEGIN_TAG_FOR_IMAGE+self.currentImagePage];

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

        UIImageWriteToSavedPhotosAlbum(zoomScrollView.imageView.image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);

    });

}


- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo

{

    if (error == NULL) {

        dispatch_async(dispatch_get_main_queue(), ^{

//////////////

        });

    }

    else {

        //////////////////////////////////////

    }

}

posted @ 2014-10-29 15:56  mengfanrong  阅读(382)  评论(0)    收藏  举报
众安尊享e升2025版 - 底部横幅广告
尊享e升 2025版
🚀 全新升级
百万医疗险全面升级 守护健康人生
✓ 一般医疗300万
✓ 重疾600万
✓ 6年保证续保
✓ 1万免赔额
600万
最高保障
首月特惠价
低至1元起
🛡️ 立即投保