iPhone SDK 4 - 如何以编程方式检测音量按钮硬件preSS? [英] iPhone SDK 4 - How to programmatically detect volume hardware button press?
本文介绍了iPhone SDK 4 - 如何以编程方式检测音量按钮硬件preSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你将如何检测,如果用户presses音量硬件按钮和prevent默认行为?
How would you detect if the user presses the volume hardware buttons and prevent default behaviour?
非常感谢。
推荐答案
看看 AVSystemController_SystemVolumeDidChangeNotification
(或者<一个href=\"http://stackoverflow.com/questions/772832/program-access-to-iphone-volume-buttons\">here)
这篇关于iPhone SDK 4 - 如何以编程方式检测音量按钮硬件preSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文