title: Custom size UIModalPresentationPopover on iPhone
body: <p>I'm trying to add a <code>Popover</code> to my custom keyboard to show alternative emoji's when long pressing on a button, but I can't seem to get the Popover to be a custom size and it seems to appear as a Modal View filling the parent view...</p>
  
  <p>I have my UIViewController initialised as such:</p>
  
  <pre><code>self.popoverViewController = [[PopoverDetailViewController alloc] init];
  self.popoverViewController.preferredContentSize = CGSizeMake(100, 50);
  </code></pre>
  
  <p>and then I handle the long press as such:</p>
  
  <pre><code>- (void)longPress:(UILongPressGestureRecognizer*)gesture {
      if (gesture.state == UIGestureRecognizerStateEnded ) {
          self.popoverViewController.modalPresentationStyle = UIModalPresentationPopover;
  
          UIPopoverPresentationController *presentationController = [self.popoverViewController popoverPresentationController];
          presentationController.permittedArrowDirections = UIPopoverArrowDirectionUp | UIPopoverArrowDirectionDown;
          presentationController.sourceView = self.view;
          presentationController.sourceRect = CGRectMake(30, 50, 10, 10);
  
          [self presentViewController:self.popoverViewController animated: YES completion: nil];
      }
  }
  </code></pre>
  
  <p>Ideally, I want a the <code>Popover</code> to appear from the button that was long pressed and have a custom size...
  Any idea what I need to change?</p>