In MPMusicPlayer i want to display MPMediaPickerView if the Next Track item are finished.... How this is possib开发者_运维知识库le on phone....Please help me....
Watch for MPMusicPlayerControllerNowPlayingItemDidChangeNotification, and in your selector method, check the playbackState for MPMusicPlaybackStateStopped, do other checking (maybe nowPlayingItem?), and present your view.
NSNotificationCenter * notifications = [NSNotificationCenter defaultCenter];
    [notifications addObserver:self selector:@selector (trackDidChangeWithNotification:)
                          name:MPMusicPlayerControllerNowPlayingItemDidChangeNotification
                        object:self.iPodController];
.....
-(void)handleNextTrackNotification {
    if ([self.iPodController playbackState] == MPMusicPlaybackStateStopped) {
        // do whatever logic checks
        // present view
    }
}
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论