草庐IT

MediaItemArtwork

全部标签

ios - 如何在 iOS 的 UITableViewCell 中设置 MediaItemArtwork Image Fill?

我正在尝试使用以下代码将MPMediaItemArtwork图像输入到UITableView的单元格的ImageView中。MPMediaItemArtwork*artwork=[[[self.arrayOfAlbumsobjectAtIndex:indexPath.row]representativeItem]valueForProperty:MPMediaItemPropertyArtwork];UIImage*artworkImage=[artworkimageWithSize:cell.imageView.bounds.size];if(artworkImage){cell.i