如何将图片保存至自定义分组(7)
来源:未知 责任编辑:责任编辑 发表时间:2014-01-26 21:59 点击:次
} failureBlock: completionBlock];
//should be the last iteration anyway, but just in case
return;
}
} failureBlock: completionBlock];
}
-(void)addAssetURL:(NSURL*)assetURL toAlbum:(NSString*)albumName withCompletionBlock:(SaveImageCompletion)completionBlock
{
__block BOOL albumWasFound = NO;
//search all photo albums in the library
[self enumerateGroupsWithTypes:ALAssetsGroupAlbum
usingBlock:^(ALAssetsGroup *group, BOOL *stop) {
//compare the names of the albums
if ([albumName compare: [group valueForProperty:ALAssetsGroupPropertyName]]==NSOrderedSame) {
//target album is found
albumWasFound = YES;
相关新闻>>
- 发表评论
-
- 最新评论 进入详细评论页>>
今日头条
更多>>您可能感兴趣的文章
- iPhone开发 文件的增加删除查询
- iOS文件存磁盘的设想
- Cocoa Core Competencies 的Object creation 和IOS面试题示例
- 深入理解iPhone静态库(手把手教你iphone开发
- ios 关于UITableView UITableViewCellAccessoryCheckmark 混乱的
- (iOS-iap防护)验证用户付费收据,拒绝iap
- iphone开发基础三和c语言混编
- ios 时间定时器 NSTimer应用demo
- iPhone开发 调用阿asp.net程序的webservice
- iphone-使用TextField及关闭键盘(useing TextField for in
新闻点评
新闻关注排行榜
热门推荐
最新推荐