Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacDonaldsd

macrumors 65816
Original poster
Hi,

How would I go about checking to see whether the iPhone silent/ringer switch is set to silent ?
 
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.
 
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.
 
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. 😱
3.gif
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.