将照片保存到本地

UIImageWriteToSavedPhotosAlbum(self.image,self,@selector(image:didFinishSavingWithError:contextInfo:),NULL);

保存照片到系统相册(PhotoAlbum)

//指定回调方法

-(void)image:(UIImage*)imagedidFinishSavingWithError:(NSError*)errorcontextInfo:(void*)contextInfo

{

if(!error){

NSLog(@"savesuccess");

}else{

NSLog(@"savefailed");

}

}

你可能感兴趣的:(将照片保存到本地)