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 {

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

    }

}

ios save image to album,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。