title: Objective C: Opening A PDF File on iBooks
body: <p>I am downloading a PDF file from an online server and save it to my the App's Sandbox then view it in iBooks.</p>
  
  <p>The iBooks viewing is what i am struggling now.
  I tried this code:</p>
  
  <pre><code>    UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
  
      docController.delegate = self;
  
      [docController presentOpenInMenuFromRect:savePDF.frame inView:self.view animated:YES];
      [docController dismissMenuAnimated:YES];
  </code></pre>
  
  <p>Still gor no chance, It is running but the popover is being dismissed right away after it was presented. But when I deleted <code>[docController dismissMenuAnimated:YES];</code> it gives me an error saying <code>'-[UIPopoverController dealloc] reached while popover is still visible.'</code></p>
  
  <p>What could be the problem?</p>