如何将图片保存至自定义分组(2)
[self addAssetURL: assetURL
toAlbum:albumName
withCompletionBlock:completionBlock];
}];
}
-(void)saveImage:(UIImage*)image toAlbum:(NSString*)albumName withCompletionBlock:(SaveImageCompletion)completionBlock
{
//write the image data to the assets library (camera roll)
[self writeImageToSavedPhotosAlbum:image.CGImage orientation:(ALAssetOrientation)image.imageOrientation
completionBlock:^(NSURL* assetURL, NSError* error) {
//error handling
if (error!=nil) {
completionBlock(error);
return;
}
//add the asset to the custom photo album
[self addAssetURL: assetURL
toAlbum:albumName
相关新闻>>
- 发表评论
-
- 最新评论 进入详细评论页>>
今日头条
更多>>您可能感兴趣的文章
- ios 时间定时器 NSTimer应用demo
- ios 关于UITableView UITableViewCellAccessoryCheckmark 混乱的
- iOS文件存磁盘的设想
- iphone-使用TextField及关闭键盘(useing TextField for in
- 深入理解iPhone静态库(手把手教你iphone开发
- iPhone开发 调用阿asp.net程序的webservice
- Cocoa Core Competencies 的Object creation 和IOS面试题示例
- (iOS-iap防护)验证用户付费收据,拒绝iap
- iphone开发基础三和c语言混编
- iPhone开发 文件的增加删除查询