I use
[assetsLibrary enumerateGroupsWithTypes:groupTypes usingBlock:listGroupBlock failureBlock:failureBlock]
to list photo albums.
An enumerator acts as an “asynchronous” method, in other words, methods are returned before all elements are enumerated.
How do I know when the listing is complete?
I populate NSMutableArray with groups and call [myTableView reloadData]after the enumeration is complete.
Pippo source
share