下面的博客写的很清楚了
http://msching.github.io/blog/page/2/
主要涉及AVAudioPlayer和下面这几个函数
MPNowPlayingInfoCenter.defaultCenter().nowPlayingInfo = [MPMediaItemPropertyAlbumTitle:"aaa"] UIApplication.sharedApplication().beginReceivingRemoteControlEvents()
下面的博客写的很清楚了
http://msching.github.io/blog/page/2/
主要涉及AVAudioPlayer和下面这几个函数
MPNowPlayingInfoCenter.defaultCenter().nowPlayingInfo = [MPMediaItemPropertyAlbumTitle:"aaa"] UIApplication.sharedApplication().beginReceivingRemoteControlEvents()