title: How to get silent switch status in iOS5
body: <p>I found out "Silent switch" status of Device using "AudioSessionGetProperty" before [iOS5]  released.</p>
  
  <pre><code>CFStringRef route;
  UInt32 propertySize = sizeof(CFStringRef);
  AudioSessionInitialize(NULL, NULL, NULL, NULL);
  AudioSessionGetProperty(kAudioSessionProperty_AudioRoute, &amp;propertySize, &amp;route);
  if(CFStringGetLength(route) == 0) {
       // Silent Mode
  }
  </code></pre>
  
  <p>Now, I'd like to know how to get "silent switch" status in "iOS5"</p>