title: Objective-C: How to use AVPictureInPictureController
body: <p>I am trying to set up picture in picture for my iPad app and I have a custom video player so I am following the sample code from: <a href="https://developer.apple.com/library/ios/samplecode/AVFoundationPiPPlayer/Introduction/Intro.html" rel="nofollow">https://developer.apple.com/library/ios/samplecode/AVFoundationPiPPlayer/Introduction/Intro.html</a> </p>
  
  <p>I am implementing this in Objective-C and the second line of code below gives the error that "Property isPictureInPictureSupported not found on object of type AVPictureInPictureController.</p>
  
  <pre><code>AVPictureInPictureController *controller = [[AVPictureInPictureController alloc]init];
  
  if (controller.isPictureInPictureSupported) {
  </code></pre>