I have recently, like a few people, discovered that [ALAssetsLibrary enumerateGroupsWithTypes] likes to run its blocks on another thread. What a shame that Apple di
Simply use this:
[library enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:[^(ALAssetsGroup * group, BOOL * stop) { if(group == nil) { // this is end of enumeration } } . . .