标签: iphone
我想根据设备的音量来定位imageView,是否可以获得设备(iphone)实际设置的音量?
答案 0 :(得分:0)
您需要编写一个属性侦听器回调函数来侦听kAudioSessionProperty_CurrentHardwareOutputVolume属性的更改。
kAudioSessionProperty_CurrentHardwareOutputVolume
this question的答案给出了编写和使用属性侦听器回调函数的示例。