草庐IT

dChangeNotification

全部标签

ios - iPhone 5 上的 AVSystemController_SystemVolumeDidChangeNotification

似乎每次启动AVCaptureSession时都会触发iPhone5上的AVSystemController_SystemVolumeDidChangeNotification事件。[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(volumeChanged:)name:@"AVSystemController_SystemVolumeDidChangeNotification"object:nil];有谁知道如何解决这个问题?我正在使用这个Observer通过音量按钮拍照(我知道这是一个私有(

iOS 检测系统音量级别变化。私有(private) API 与否? AVSystemController_SystemVolumeDidChangeNotification

可以将监听AVSystemController_SystemVolumeDidChangeNotificationNSNotification视为使用私有(private)API(在AppStore审查过程中)吗?在我的应用程序中,我需要显示和更新当前音量级别。在按下硬件音量按钮后和在MPVolumeViewslider中更改音量后,应更新音量指示器。我搜索了如何获取硬件音量按钮按下的通知或事件的解决方案,并找到了许多解决方案。例如,iPhoneDetectVolumeKeyspress.和Howtogetaudiovolumelevel,andvolumechangednotific