Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"More than maximum 5 filtered albums trying to register. This will fail." using AssetsLibrary

I sometimes get "More than maximum 5 filtered albums trying to register. This will fail." when I call setAssetsFilter on a ALAssetsGroup.

Anyone knows why? I've seen similar questions but all related to the UIImagePickerController.

here the code:

ALAssetsLibrary *lib = [[ALAssetsLibrary alloc] init];

    [lib enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:^(ALAssetsGroup *group, BOOL *stop) {

        [group setAssetsFilter:[ALAssetsFilter allPhotos]];
        [group enumerateAssetsWithOptions:NSEnumerationReverse usingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) {....}];
like image 648
Luka Avatar asked Aug 27 '12 11:08

Luka


2 Answers

Most guys on this have seen this question:iOS 5 GM: : More than maximum 5 filtered album lists trying to register. This will fail. And this: iPhone, “More than maximum 5 filtered album lists trying to register. This will fail.” Error. So we can believe that this is a known issue bug. No big problem.

I also see this comment:

On iOS 5.1.1, I do check for the availablity of the source type and still get the warning when I call the image picker for the 5th time. I do not see this on iOS 6.0 so Apple seems to have fixed something. – Richard Altenburg - Brainchild

like image 160
sunkehappy Avatar answered Sep 28 '22 05:09

sunkehappy


I guess this is an Apple Bug!..Even Apple examples give the same Error. Better to ignore it!

like image 37
Nikita P Avatar answered Sep 28 '22 05:09

Nikita P



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!