views:

63

answers:

0

I need to get a small number of random MPMediaItems of the music type, but the songs have to have cover artworks attached. I figured might need to use an MPMediaQuery with a MPMediaPropertyPredicate.

I could of course just call [MPMediaQuery artistsQuery] and then iterate through the results until some items that matches the criteria are found, but I fear that would be too slow if the library is big. Any suggestions?