views:

191

answers:

2

How would you detect if the user presses the volumen hardware bottons and prevent default behaviour?

Thanks a lot.

A: 

You can't with the current SDK.

Shaggy Frog
+7  A: 

Look at AVSystemController_SystemVolumeDidChangeNotification (or alternatively here)

Matt S.
Thanks for your reply. Is there any way to prevent the default system behaviour?
dan
@dan - Apple does not allow you to override system behavior of buttons like that. There was an app that got in trouble recently for changing the behavior to take a picture instead.
ghills
@ghills - Thanks, I've read about this. But I don't need app store approval. It must work on my dev device, only.
dan
Shaggy Frog