title: UIActivityViewController not showing "Open in iBooks" option
body: <p>I have a problem in my app. After getting some statistics, I generate a PDF file, and I want  to show an UIActivityViewController with the options "Open in iBooks" and "Send By Mail" mainly (others like "Open in Dropbox" would be great to).</p>
  
  <p>Well the thing is that before trying to use UIActivityViewController, I was using UIDocumentInteractionController, with the following code:</p>
  
  <pre><code>self.docController = [UIDocumentInteractionController interactionControllerWithURL:url];
  self.docController.delegate = self;
  [_docController presentOpenInMenuFromRect:_openInIBooksButton.bounds inView:self.openInIBooksButton animated:YES];
  </code></pre>
  
  <p>Where url is a path like /Documents/../statistics.pdf. It worked, it showed a popover with the buttons open in iBooks and open in Dropbox, but not Send by Mail. Now I've changed it with the following code:</p>
  
  <pre><code>NSArray* itemsToShare = [NSArray arrayWithObjects:pdfData, nil];
  UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil];
  activityVC.excludedActivityTypes = @[UIActivityTypeCopyToPasteboard]; //or whichever you don't need
  [self presentViewController:activityVC animated:YES completion:nil];
  </code></pre>
  
  <p>Where pdfData is a NSData object. And it works too, but now it shows the option of sending it by email, but not the iBooks option. I'm going nuts because I don't find the reason of that behavior and I need the two options, iBooks and Mail.</p>
  
  <p>I don't know if it has something to do with the fact that the UIDocumentInteractionController has a path which ends with .pdf and the UIActivityViewController only has a NSData object. But I can't find a solution for that.</p>
  
  <p>Somebody has found that problem before?</p>
  
  <p>Thank you very much.</p>