每次啓動AVCaptureSession時,似乎都會觸發iPhone 5上的AVSystemController_SystemVolumeDidChangeNotification
事件。iPhone 5上的AVSystemController_SystemVolumeDidChangeNotification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(volumeChanged:) name:@"AVSystemController_SystemVolumeDidChangeNotification" object:nil];
有沒有人知道如何解決這個問題?我正在使用這個Observer拍攝音量按鈕(我知道這是一個私人API,但它與默認相機應用程序的功能相同,蘋果通常視而不見......),但只有iPhone 5的每次照相機啓動時都會拍攝一張照片。
你仍然有這個問題?我想使用'AVSystemController_SystemVolumeDidChangeNotification',但我沒有iPhone 5來測試。 – 2013-01-12 22:38:40
是的,不幸的是我試圖解決這個問題在iPhone5上測試,但它似乎很難做到這一點:( – flip79
呃。謝謝。 – 2013-01-13 19:20:36