title: Detecting if headphones are plugged into iPhone
body: <p>Does anyone know if you can detect if headphones are plugged into the iPhone, and if they aren't - disable sound from your application.</p>
  
  <p>I think I could manage disabling sound, but the detection part I have yet to find anything on.</p>
  
  <p>Thanks</p>