I am developing a Game and I would like to disable the volume buttons when I am playing (because the user has to use the accelerometer and could accidentally press it). Is it possible at all?
Asked
Active
Viewed 3,144 times
3
-
1Do not think so. This would affect the ringer control as well, which is probably not what Apple wants. – LinusGeffarth Apr 28 '15 at 15:34
-
1I think there are ways to hide the overlay volume popup, I've definitely seen apps that do this. Apparently involved MPVolumeView, but also looks like this might not work in iOS 8. – shim Apr 28 '15 at 16:44
-
@shim I agree with you, I don't remember what apps but I've also seen some hiding the overlay. I will have a look if possible to do it. – MeV Apr 28 '15 at 16:45
-
Thanks to this answer I was able to hide the volume overlay: [Hide Volume Overlay][1] [1]: http://stackoverflow.com/questions/25521090/iphone-how-hide-volume-overlay-when-press-volume-key – MeV Apr 29 '15 at 10:07
1 Answers
6
Edit:
This Q&A explains how to set up a volume listener.
This Q&A explains how to hide volume overlays.
Old answer: This has not been possible in the past, because the practice has been explicitly disallowed by the app store review guidelines which no longer apply:
Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, will be rejected

Sergey Kalinichenko
- 714,442
- 84
- 1,110
- 1,523