Control the volume up and down button

hello
I want to create an application with a counter and a pressure button and start the meter, and I want to link the button to the Volume Up and Down button so that if the meter is 0 and press the volume button it becomes 1 and so on





AFAIK, it is forbidden to change the behaviour of those buttons. They are reserved for sound volume. It would be very misleading for user to have the buttons not reacting as they should.

Of course you could detect volume change and use the volume information for your purpose, but you would be limited to the min and max volume values.

So, as a conclusion, don't try to do that.

May read discussion in this old thread:
https://developer.apple.com/forums/thread/107241
I need some code -----> xcode12

I need some code -----> xcode12
Then write it ! The forum is not for writing code for you…

Is the problem Xcode 12 ? Where is the problem ?

Did you read my answer ? There are several code suggestions in the referenced thread that could inspire you.


Control the volume up and down button
 
 
Q