알림 센터를 사용할 때 어떻게 노래가 끝났다고 판단합니까? updateNowPlayingInfo
방법에MPMusicPlayerControllerPlaybackStateDidChangeNotification 노래가 끝났는지 확인하십시오.
NSNotificationCenter.defaultCenter().addObserver(self,
selector:#selector(updateNowPlayingInfo),
name: MPMusicPlayerControllerPlaybackStateDidChangeNotification,
object: musicPlayer)
고마워요 @ 클락 그 작품! – justdan0227