I want to position an imageView based on the amount of volume of the 开发者_开发知识库device, is it possible to obtain how much sound volume the device (iphone) is actually set to?
You will need to write a property listener callback function that listens for changes to the kAudioSessionProperty_CurrentHardwareOutputVolume
property.
The answer to this question gives an example of writing and using the property listener callback function.
精彩评论