使用通知中心時,如何確定歌曲已結束?MPMusicPlayerControllerPlaybackStateDidChangeNotification確定歌曲是否已結束
NSNotificationCenter.defaultCenter().addObserver(self,
selector:#selector(updateNowPlayingInfo),
name: MPMusicPlayerControllerPlaybackStateDidChangeNotification,
object: musicPlayer)
謝謝@Clark,它的效果也很好! – justdan0227