Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 8 - Deleted Albums are shown in Albums list #89

Closed
pichirichi opened this issue Sep 3, 2014 · 2 comments
Closed

iOS 8 - Deleted Albums are shown in Albums list #89

pichirichi opened this issue Sep 3, 2014 · 2 comments

Comments

@pichirichi
Copy link

Starting iOS 8 deleted albus are not erased from the device but only marked as deleted.
In Photos Framework you can request for non deleted but in ALAssets you receive also the deleted albums in the Group list.

Any idea for a workaround besides hybrid solution (validate groups with photos framework albums fetch) ?

@pichirichi
Copy link
Author

There is a workaround using just the PHCollectionList to validate each album you fetch in ALAssetsGroup.

    PHFetchResult *topLevelUserCollections = [PHCollectionList fetchTopLevelUserCollectionsWithOptions:nil];
    int i;
    for (i = 0; (i < [topLevelUserCollections count]); i++) {
        PHCollection *collection = topLevelUserCollections[i];
        [albumsPhArray addObject:collection.localizedTitle];
    }

@pichirichi
Copy link
Author

As for the iOS 8 GM the above is not relevant and deleted albums are not shown.

The issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants