I'm seeing a consistent issue with MPMediaItemArtwork in that it's returning artwork in a size different to that which I request.
The code I'm using is as follows
MPMediaItem *representativeItem = [self.representativeItems objectAtIndex:index];
MPMediaItemArtwork *artwork = [representativeItem valueForProperty:MPMediaItemPropertyArtwork];
UIImage *albumCover = [artwork imageWithSize:CGSizeMake(128.0f, 128.0f)];
This works as expected, except that the size of the returned image is always {320.0f, 320.0f}
even though I specifically asked for {128.0f, 128.0f}
and it's causing some memory issues due to the images being more than twice the size of those expected.
Has anyone else witnessed this particular issue. How did you resolve it?
Apples docs suggest this should work as I'm expecting it to rather than how it actually is