///监听耳机的 插拔的事件
NSNotificationCenter.defaultCenter().addObserver(musicViewControllerStrong, selector: #selector(musicViewControllerStrong.pauseMusic(_:)), name: AVAudioSessionRouteChangeNotification, object: AVAudioSession.sharedInstance())
///设置远程操控
UIApplication.sharedApplication().beginReceivingRemoteControlEvents()
becomeFirstResponder()
-
看我那么可爱n(≧▽≦)n
- 关注我的微薄 (梁同桌):http://weibo.com/tongrenyinsheng
- 个人网站(同人音声) http://www.tongrenyinsheng.com
- ios 个人写的app (同人音声)ASMR音乐