Ios 音频会话中断

Ios 音频会话中断,ios,Ios,`设置会话() UIApplication.shared.beginReceivingRemoteControlEvents() 成为第一响应者() 我试图通过使用AvauditionErruptionNotification来检查电话何时结束,但我做错了什么我不断得到参数标签u、u、名称、对象与任何可用的重载不匹配…在swift 3中使用通知中心的新方法是作为休止符。我能够编译没有错误或警告 NotificationCenter.default.addObserver(self, sel

`设置会话() UIApplication.shared.beginReceivingRemoteControlEvents() 成为第一响应者()


我试图通过使用AvauditionErruptionNotification来检查电话何时结束,但我做错了什么我不断得到参数标签u、u、名称、对象与任何可用的重载不匹配…

在swift 3中使用通知中心的新方法是作为休止符。我能够编译没有错误或警告

   NotificationCenter.default.addObserver(self, selector:
   (Selector("handleInterruption")), name:
   NSNotification.Name.AVAudioSessionInterruption, object: nil)

我正在尝试使用AVAudiointerruptionNotification检查电话何时结束,但我做错了什么我一直在获取参数标签u、u、名称、对象与任何可用的重载不匹配。。。
   NotificationCenter.default.addObserver(self, selector:
   (Selector("handleInterruption")), name:
   NSNotification.Name.AVAudioSessionInterruption, object: nil)