ipad照片库中的相册属性 [英] Properties of albums in ipad photo library

查看:133
本文介绍了ipad照片库中的相册属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法来处理在ipad照片库中同步的相册的属性。我想获得相册在照片库中保存的名称。请尝试此人或谁有在这个

Is there any way to acccess the properties of the Albums synced in ipad photo library.I want to get the names with which the Album is saved in the photo library.Please anyone who have tries this or who have any knowledge in this case ,please help.

推荐答案

p>您想要使用ALAssetsLibrary。这应该让你朝正确的方向移动:

You'd want to use the ALAssetsLibrary. This ought to get you moving in the right direction:

ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];        
[library enumerateGroupsWithTypes:ALAssetsGroupAll
                       usingBlock:^(ALAssetsGroup *group, BOOL *stop) 
                                 {
                                          if (group == nil) 
                                              return;
                                          //this is the album name
                                          NSLog(@"%@",[group valueForProperty:ALAssetsGroupPropertyName]); 
                                 } 
                     failureBlock:^(NSError *error) 
                                 {   
                                            //failure code here                                              
                                 }];

这篇关于ipad照片库中的相册属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆