Can an iOS app switch the device to silent mode?
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. 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