View Full Version : iPhone Silent switch
MacDonaldsd
Aug 10, 2008, 08:00 AM
Hi,
How would I go about checking to see whether the iPhone silent/ringer switch is set to silent ?
Ntombi
Aug 10, 2008, 10:01 AM
If you see a red dot, it's set to silent.
MacDonaldsd
Aug 10, 2008, 01:48 PM
Sorry if I was not clear, I mean programatically.
I don't want to play sounds in my iPhone application if the iPhone is switched to silent.
kainjow
Aug 10, 2008, 03:33 PM
If there's nothing documented, you could try searching in NSUserDefaults (via dictionaryRepresentation) to see if there is a preference there, but I wouldn't count on it.
Ntombi
Aug 12, 2008, 12:19 AM
Sorry if I was not clear, I mean programatically.
I don't want to play sounds in my iPhone application if the iPhone is switched to silent.
Sorry. Didn't realize this was the programming forum. :o http://bestsmileys.com/eek/3.gif
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.