title: UIPopovercontroller in UISplitViewController
body: <p>My detailviewcontroller is called myDetailVC , with tableVC which is just a table on the side of myDetailVC.</p>
  
  <p>in myDetailVC, I have a button that is supposed to show a popoverviewcontroller. However, it crashes when I press it.</p>
  
  <p>in my .h file:</p>
  
  <pre><code>@property (strong, nonatomic) UIPopoverController *masterPopOverController;
  </code></pre>
  
  <p>and .m:</p>
  
  <pre><code>- (IBAction)goToPDF:(id)sender
  {
  
  
          viewPDFViewController *MPPWV =[[viewPDFViewController alloc] initWithNibName:nil bundle:nil];
  
          self.masterPopOverController = [[UIPopoverController alloc] initWithContentViewController:MPPWV];
  
          [self.masterPopOverController presentPopoverFromRect:[sender frame] inView:[sender superview] permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
          [self.masterPopOverController setPopoverContentSize:CGSizeMake(100, 100) animated:NO];
  
  
      }
  </code></pre>
  
  <p>Everything is connected fine in my xib, since I tested it by making it push to a viewcontroller instead of a popover. Can someone help me with this?</p>