title: UIPopViewController not working
body: <p>I have an xib file with a .h and .m linked. In the xib there is a UIView with a textView. What I would like to do with that view is open it as a UIPopViewController when you click a button.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>- (IBAction)thisButton:(id)sender
  {
      popViewController *popVC = [[popViewController alloc] initWithNibName:@"popViewController" bundle:nil];
  
      self.pop = [[UIPopoverController alloc] initWithContentViewController:popVC];
  
      [self.pop setPopoverContentSize:CGSizeMake(220, 120) animated:YES];
      [self.pop presentPopoverFromRect:[(UIButton *)sender frame] inView:self.view
                     permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
  }
  </code></pre>
  
  <p>It crashed with the following error.</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPopoverController initWithContentViewController:] called when not running under UIUserInterfaceIdiomPad.'
  </code></pre>
  
  <p>I don't understand the error.</p>