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,布布扣,bubuko.com

ios save image to album

上一篇:javaweb:判断当前请求是否为移动设备访问


下一篇:(Android review)发短信