ALAssetsLibrary wrong order group album

85 views
Skip to first unread message

Leonardo Parro Jr

unread,
Jul 27, 2012, 1:44:49 PM7/27/12
to iphonesdkd...@googlegroups.com
Hi,

I'm using the ELCImagePickerController to have a customize image selection but I've encounter a problem when displaying the saved photos album & group album, the order is wrong. The "Camera Roll" should be displayed first.

Iv'e also found a similar problem but there's no definite solution-

Is there a way we can enumerate the "Camera Roll" to be displayed first?

  [library enumerateGroupsWithTypes:ALAssetsGroupAll

                               usingBlock:assetGroupEnumerator 

                             failureBlock:assetGroupEnumberatorFailure];


Or do I need to query 2 times (1st get the saved photos, 2nd get the group album) ?


I've posted my code here:

http://pastebin.com/pZfZRVkU


Pls. advise if you've an idea. Thanks


Regards,

J

Leonardo Parro Jr

unread,
Jul 27, 2012, 10:33:29 PM7/27/12
to iphonesdkd...@googlegroups.com
Hi,

I've already solved it using the ALAssetsGroup property name.

[group valueForProperty:ALAssetsGroupPropertyName];



-- 
Regards,
Leo (@jayrparro)


Reply all
Reply to author
Forward
0 new messages