如何在Swift中正确使用AVRouteDetectorMultipleRoutesDetectedDidChangeNotification

问题描述

在swift5中使用AVRouteDetectorMultipleRoutesDetectedDidChangeNotification时遇到麻烦。

尝试了以下操作均无济于事:

NotificationCenter.default.addobserver(
    self,selector: #selector(routesDidChange),name: .AVRouteDetectorMultipleRoutesDetectedDidChangeNotification,object: nil
)
name: AVRouteDetectorMultipleRoutesDetectedDidChangeNotification,
name: NSNotification.Name.AVRouteDetectorMultipleRoutesDetectedDidChangeNotification,

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)