我问了一下,并用SystemVolumeDidChangeNotification never get triggered on iOS14找到了一个解决方案。该事件将被触发,并且可以通过我找到的解决方法在iOS14中观察到。(self, selector: #selector(volumeChange(_:)), name: Notification.Name(rawValue: "AVSystemController_SystemVolumeD
NotificationCenter.default.addObserver(self, selector: #selector(volumeChanged), name: NSNotification.Name(rawValue: "AVSystemController_SystemVolumeDidChangeNotificationsuch as a switch based off of "volumeChangeType" }但是,一旦用户一直将音量向上或向下打开,事件就不再被触发<