简体   繁体   中英

Detect when volume button is pressed

I've done lots of research and I know that Apple will not allow this but does anyone have code or can someone point me to code that enables me to detect when a user presses either the up or down volume button on the iphone?

I need to be able to detect which one is pressed (up or down). I will not be submitting anything to apple that has this code. I am just wondering if possible?

Thanks in advance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM