is there any way to detect silent mode in iOS 7?
the following code does not work for iOS 5 or later version
-(BOOL)silenced {
#if TARGET_IPHONE
Check this thread - Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?
And this API - SoundSwitch
How it works:
Enjoy!