Detect when music player is being paused
问题 I wonder if it's possible to detect when the the music in my "iPod" on the phone is being paused, not if it's paused or currently playing, just the moment when the music is being paused. I guess i should be using AVAudio ? Thanks! 回答1: MPMusicPlayerController has a method: +(MPMusicPlayerController *)iPodMusicPlayer; The iPod music player employs the iPod app on your behalf. On instantiation, it takes on the current iPod app state and controls that state as your app runs. Specifically, the