开发者

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

开发者 https://www.devze.com 2022-12-31 14:53 出处:网络
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 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!


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

Using a UISlider to change volume


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

0

精彩评论

暂无评论...
验证码 换一张
取 消