For the iPad or iPhone, how do you control the system Volume? For example, have a button that mutes all audio

StackOverflow https://stackoverflow.com/questions/2852374

Question

I would like to make a button in my iPad app (probably will be similar to iPhone apps) that when I push this button, all audio is muted, even when you exit the app.

I don't see anyway that you can control the volume, although I'm sure other apps have that I have seen in the app store for the iPhone. I also read some places that doing this would reject you from the app store.

How could I go about lowering, or highering the volume of the iPad from an app that works even when the app closes?

Thank you!

Was it helpful?

Solution

AFAIK, you can't, at least not programmatically. But you can integrate an MPVolumeView.

Using a UISlider to change volume

OTHER TIPS

You can't do this. Apple does not let you make system-wide changes that affect other apps like this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top