In my app, I display album artwork on a button. On an iPhone 5, the button bounds size is 273x269.5. My code to size the artwork has always been very straightforward and nothing has changed.
MPMediaItem *currentItem = [musicPlayer nowPlayingItem];
MPMediaItemArtwork *iTunesArtwork = [currentItem valueForProperty: MPMediaItemPropertyArtwork];
CGSize buttonBounds = self.albumArtworkButton.bounds.size;
UIImage *resizedImage = [iTunesArtwork imageWithSize: CGSizeMake (buttonBounds.width, buttonBounds.height)];
Suddenly with iOS8, the execution of this results in resizedImage = nil. What is really strange is that if I change the last line, the execution of the following line:
UIImage *resizedImage = [iTunesArtwork imageWithSize: CGSizeMake (300, 300)];
results in a valid image (i.e. resizedImage is not nil and the image can be displayed).
Any ideas what might cause this? I haven't changed anything, but the code broke.