Separate names with a comma.
Discussion in 'iOS Programming' started by MacDonaldsd, Aug 10, 2008.
How would I go about checking to see whether the iPhone silent/ringer switch is set to silent ?
If you see a red dot, it's 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. Didn't realize this was the programming forum.