Get album year for item in iPod library?
问题 Trying the following code: // Per albums MPMediaQuery *albumsQuery = [MPMediaQuery albumsQuery]; NSArray *collections = [albumsQuery collections]; for (MPMediaItemCollection *collection in collections) { NSDate *collectionReleaseDate = [collection valueForProperty: MPMediaItemPropertyReleaseDate]; NSLog(@"collection release date: %@", collectionReleaseDate); MPMediaItem *representativeItem = [collection representativeItem]; NSDate *representativeItemReleaseDate = [representativeItem