读书人

将图片封存在iPhone的相册中(转)

发布时间: 2012-09-19 13:43:54 作者: rapoo

将图片保存在iPhone的相册中(转)

有时候你的应用需要将应用中的图片保存到用户iPhone或者iTouch的相册中。 可以使用UIKit的这个类方法来完成。

- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error             contextInfo:(void *)contextInfo  {    // Was there an error?    if (error != NULL)    {      // Show error message…     }    else  // No errors    {      // Show message image successfully saved    }  }
?

读书人网 >Iphone

热点推荐