码迷,mamicode.com
首页 > 移动开发 > 详细

ios save image to album

时间:2014-07-08 19:34:27      阅读:417      评论:0      收藏:0      [点我收藏+]

标签:style   os   for   io   ios   re   

- (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

标签:style   os   for   io   ios   re   

原文地址:http://blog.csdn.net/majiakun1/article/details/37529897

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!