現在の曲のアルバム アートを取得し、それを使用して特定の変更を行うとimageView.image
、エラーが発生しますが、クラッシュしなくなりました。(エラーハンドリングを省いたので以前はそうでしたif (!artwork)
。えへへ)
この方法:
- (void)handleNowPlayingItemChanged:(id)notification {
MPMediaItem *item = self.musicPlayer.nowPlayingItem;
CGSize albumCoverSize = self.albumCover.bounds.size;
MPMediaItemArtwork *artwork =
[item valueForProperty:MPMediaItemPropertyArtwork];
if (artwork) {
self.albumCover.image = [artwork imageWithSize:albumCoverSize];
} else {
self.albumCover.image = nil;
}
}
次のように爆発します。
CPSqliteStatementPerform: attempt to write a readonly database for
UPDATE ddd.ext_container SET orig_date_modified = (SELECT date_modified
FROM container WHERE pid=container_pid) WHERE orig_date_modified=0
CPSqliteStatementReset: attempt to write a readonly database for
UPDATE ddd.ext_container SET orig_date_modified = (SELECT date_modified
FROM container WHERE pid=container_pid) WHERE orig_date_modified=0
ただし発動時のみ。そして、それはまだ画像(またはその欠如)を示しています。変。
編集: iPod ライブラリは読み取り専用 (アプリは何も変更できず、iTunes のみ) であるため
、読み取り専用の何かを書いていると私に怒鳴っているのかもしれませんが、読み取り専用は何も変更されていないため、まだ許可されていますか?
そして、それが修正された後、IB のストレッチではなく、(ランドスケープのサポートのために) サイズ変更を機能させる必要があります。
重要ではありませんが、それでもあると便利です。