A media item collection is a sorted set of media items (instances of the MPMediaItem class) from the iPod library. Typically, you use this class by requesting an array of collections from a media query by way of its collections property.
A media item collection is a sorted set of media items (instances of the mpmediaitem class) from the iPod library. Typically, you use this class by requesting an array of collections from a media query by way of its collections
property.
The grouping type for the media query determines the arrangement of the media items you obtain. You also use the media query collections
property to obtain synced playlists.
A media item collection can have a wide range of metadata associated with it. You access this metadata using the valueForProperty:
method along with the property keys. You can also access metadata in a batch fashion using the enumerateValuesForProperties:usingBlock:
method. In some cases, this is more efficient. Both of these methods are defined in MPMediaEntity
(the abstract superclass of mpmediaitemcollection).