iPhone Silent switch

Discussion in 'iOS Programming' started by MacDonaldsd, Aug 10, 2008.

  1. MacDonaldsd macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #1
    Hi,

    How would I go about checking to see whether the iPhone silent/ringer switch is set to silent ?
     
  2. Ntombi macrumors 68030

    Ntombi

    Joined:
    Jul 1, 2008
    Location:
    Bostonian exiled in SoCal
  3. MacDonaldsd thread starter macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #3
    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.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    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.
     
  5. Ntombi macrumors 68030

    Ntombi

    Joined:
    Jul 1, 2008
    Location:
    Bostonian exiled in SoCal
    #5
    Sorry. Didn't realize this was the programming forum. :eek: [​IMG]
     

Share This Page