Ok, I think I figured it out. I thought the Year column in iTunes corresponds to the MPMediaItemPropertyReleaseDate in the API, but this is wrong. There was no release date information on my items.
I also found how to get the Year information (which I need), but unfortunately in an undocumented way:
MPMediaItem *item = ...;
NSNumber *yearNumber = [item valueForProperty:@"year"];
if (yearNumber && [yearNumber isKindOfClass:[NSNumber class]])
{
int year = [yearNumber intValue];
if (year != 0)
{
}
}
source
share