title: AVAudioSessionCategoryPlayAndRecord makes AirPlay invisible
body: <p>I am encountering the following problem: AirPlay becomes not available whenever I set play-and-record category to the audio session in my application:</p>
  
  <pre><code>[[AVAudioSession sharedInstance]
          setCategory: AVAudioSessionCategoryPlayAndRecord
          error: &amp;setCategoryError];
  </code></pre>
  
  <p>This call makes the AirPlay disappear and reroutes the audio to the speaker immediately.</p>
  
  <p>The problem can be easily reproduced e.g. on the sample project <code>avTouch</code> from Xcode documentation by replacing <code>AVAudioSessionCategoryPlayback</code> category with  <code>AVAudioSessionCategoryPlayAndRecord</code>: in the original example AirPlay picker is visible and allows to change output source, whereas with the <code>AVAudioSessionCategoryPlayAndRecord</code> category the picker disappears.</p>
  
  <p>Is there a proper way to switch to <code>AVAudioSessionCategoryPlayAndRecord</code> category so that the AirPlay is still available?</p>
  
  <p>(A question like this has been <a href="https://stackoverflow.com/questions/11319100/avaudiosessioncategoryplayandrecord-with-airplay">already asked</a>, but didn't get any answer.)</p>