Im利用MPMusicPlayerController在我手头上打着一张头巾。
唯一的问题是,根据配对结构,我确定数量水平时,数量水平似乎普遍。
I tried to find any property in order to hide it, but I didn t find.
The code I m using is:
if (audioPlayer)
if ([audioPlayer isPlaying])
[audioPlayer stop];
self.musicPlayer = [MPMusicPlayerController applicationMusicPlayer];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handlePlaybackStateChanged:) name:MPMusicPlayerControllerPlaybackStateDidChangeNotification object:self.musicPlayer];
[self.musicPlayer beginGeneratingPlaybackNotifications];
[self.musicPlayer setAccessibilityElementsHidden:YES];
self.musicPlayer.volume = volume;
[self.musicPlayer setQueueWithItemCollection:mediaItemCollection];
self.musicPlayer.repeatMode = MPMusicRepeatModeAll;
[self.musicPlayer play];
我的问题是,避免出现这种情况的任何方法?
感谢。