IOS判断相册是否允许访问

  1. ALAssetsLibrary *library = [[ALAssetsLibrary alloc]init];  

    创新互联建站专业为企业提供叶集网站建设、叶集做网站、叶集网站设计、叶集网站制作等企业网站建设、网页设计与制作、叶集企业网站模板建站服务,十年叶集做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

  2.     [library writeImageToSavedPhotosAlbum:p_w_picpath.CGImage orientation:p_w_picpath.p_w_picpathOrientation completionBlock:^(NSURL *asSetUrl,NSError *error){  

  3.         if (error) {  

  4.             UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"保存图片失败"  

  5.                                                            message:@"请打开 设置-隐私-照片 来进行设置"  

  6.                                                           delegate:nil  

  7.                                                  cancelButtonTitle:@"确定"  

  8.                                                  otherButtonTitles:nil, nil];  

  9.             [alert show];  

  10.             [alert release];  

  11.         }else{  

  12.             UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"保存图片成功"  

  13.                                                            message:nil  

  14.                                                           delegate:nil  

  15.                                                  cancelButtonTitle:@"确定"  

  16.                                                  otherButtonTitles:nil, nil];  

  17.             [alert show];  

  18.             [alert release];  

  19.         }  

  20.           

  21.     }];  


文章题目:IOS判断相册是否允许访问
URL链接:http://myzitong.com/article/pdhihd.html