Can an iOS app switch the device to silent mode?

时光毁灭记忆、已成空白 提交于 2019-11-26 23:36:40

问题


Is there a way to programmatically set the device my app is running on to silent mode? The silence must encompass the entire device, not just my application.


回答1:


No. As it's a physical hardware switch, there's no software method for muting the entire device.

No reason to fight the framework, just let the user mute the device if he/she pleases.



来源:https://stackoverflow.com/questions/7828958/can-an-ios-app-switch-the-device-to-silent-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!