IOS 判断相册是否允许访问
2013-04-12 16:05
92 查看
-(void)savedLibrayImage:(UIImage *)image { ALAssetsLibrary *library = [[ALAssetsLibrary alloc]init]; [library writeImageToSavedPhotosAlbum:image.CGImage orientation:image.imageOrientation completionBlock:^(NSURL *asSetUrl,NSError *error){ if (error) { UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"存储失败" message:@"请打开 设置-隐私-照片 来进行设置" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; [alert show]; [alert release]; }else{ UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"存储成功" message:nil delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; [alert show]; [alert release]; } }]; }
#import <AssetsLibrary/AssetsLibrary.h>//导入此类和AssetsLibrary.framework框架
相关文章推荐
- IOS 判断相册是否允许访问
- iOS判断是否有权限访问相机,相册,定位
- 工具方法,判断是非允许访问ios相机、相册
- iOS判断是否有权限访问相机,相册,定位
- iOS 判断相册相机是否允许
- ios 判断是否有权限访问相机,相册,定位
- iOS判断是否有权限访问相机,相册,定位
- ios判断是否有权限访问相机,相册,定位
- iOS判断是否有权限访问相机,相册,定位
- iOS 判断是否有权限访问相机,相册
- iOS iOS判断是否有权限访问相机,相册,定位
- iOS技术点:判断用户是否开启推送开关/是否允许推送?
- iOS 10 不提示「是否允许应用访问数据」,导致应用无法使用的解决方案
- 判断是否有权限访问相机,相册,定位
- 判断是否有权限访问相机,相册,定位
- iOS 判断是否允许app消息推送
- js 判断是否为 Android IOS IPAD IPHONE 等移动设备访问
- 判断是否是手机访问,安卓或IOS
- iOS开发(OC)——判断是否具有访问系统服务的权限
- iOS 10 不提示「是否允许应用访问数据」,导致应用无法使用的解决方案