Pracuję nad aplikacją do odtwarzania muzyki, w poprzednich wersjach iOS odtwarzacz multimedialny wyświetlał przyciski odtwarzania/pauzy, a także przyciski przeskakiwania i prev. Teraz, po aktualizacji 8.4, wszystko, co jest pokazane, to gra/pauza. Ja aktualizację MPNowPlayingInfoCenter w zwykły sposób:iOS 8.4 MPNowPlayingInfoCenter pominięcie/prev zniknęło
NSDictionary* nowPlayingInfo = @{
MPMediaItemPropertyTitle:[self.currentSong title],
MPMediaItemPropertyArtist:[self.currentSong artist],
MPMediaItemPropertyPlaybackDuration:[NSNumber numberWithDouble:(double) self.duration],
MPNowPlayingInfoPropertyElapsedPlaybackTime: [NSNumber numberWithDouble:(double)self.currentPlaybackTime],
MPNowPlayingInfoPropertyPlaybackRate: self.isPlaying ? @1.0 : @0.0,
MPMediaItemPropertyArtwork: mediaPlayerArtwork,
MPNowPlayingInfoPropertyPlaybackQueueIndex: [NSNumber numberWithInteger:playQueue.queuePosition],
MPNowPlayingInfoPropertyPlaybackQueueCount: [NSNumber numberWithInteger:playQueue.queueIDs.count] };
[[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:nowPlayingInfo];
Ale wynik jest ...
i
dzięki za pomoc!