-1

I have two buttons in my iOS project. Is there anyway to assign the volume up/ down on the physical device itself to my application buttons so when the volume button is pressed, it controls the buttons? Thank you

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Chase Chiangi
  • 61
  • 1
  • 7

1 Answers1

2

No that's not possible. Also why would you do that to a user? If I was a user and you override those buttons when I expected them to change the volume, you app would be deleted, very quickly.

Robert J. Clegg
  • 7,231
  • 9
  • 47
  • 99
  • Well, one example of this sort of 'misuse' is the camera app on iPhones: pressing a volume button will take a picture. – bames53 Jan 05 '15 at 20:33
  • Thats expected and a welcome behaviour. – Robert J. Clegg Jan 06 '15 at 03:29
  • I agree, so obviously sometimes this behavior is okay. It's just a design decision. – bames53 Jan 06 '15 at 06:39
  • My point is, 3rd party devs should not have that level of access to an iDevice. – Robert J. Clegg Jan 06 '15 at 07:19
  • Why shouldn't they have that level of access? I would say that it's a design decision that can be made correctly by third parties just as much as by a first parties. – bames53 Jan 06 '15 at 09:10
  • 3
    because APPLE SAID SO. There are plenty of things that they do in their own software but which they have forbidden to their third party developers. There is nothing you can do about it if you want to distribute software on their platform through their repository. the hardware buttons are theirs not ours – Jef Jan 06 '15 at 20:11