0

It's common to enumerate the ALAssetsGroup to get the ALAsset objects, like this way:

[assetGroup enumerateAssetsUsingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) {
    NSLog(@"%@",result);              
}];

But I have a special use case, which is accessing the ALAssetsGroup information for an specific ALAsset object. How to do this by avoid enumerating the whole library? Thanks!

Hang
  • 469
  • 1
  • 4
  • 18
  • 1
    Why? What makes you think you can or that the asset is in only 1 group? Enumerate and build the list yourself. – Wain Jan 14 '14 at 07:55
  • @Wain I think you are right: the assumption that `ALAsset` is in only 1 group is wrong. But I have a requirement that is displaying the current user selected `ALAsset` amount for each `ALAssetsGroup` cell in an album picker. – Hang Jan 14 '14 at 08:18
  • So enumerate and count... – Wain Jan 14 '14 at 09:29

0 Answers0