So MPMediaItem corresponds to NSCoding, but contains a pointer to MPMediaItemArtwork, which does not correspond to NSCoding. Therefore, if I try to archive MPMediaItem, if this element has some illustrations, it will not be able to unlock.
I tried to create the MPMediaItemArtwork category and make it compatible with NSCoding, but I cannot do this because we do not have access to the actual UIImage that it stores. Does anyone know of any other creative ways around this problem? I want to be able to archive MPMediaItem, even if it means somehow removing the cover object. Is there a way to make a class category to drop certain functionality (instead of adding more, for example, to categories)? Or any other smart way to achieve this?
Thanks.
source share