title: iOS: Autolayout and popOverController issue (possible Xcode bug)
body: <p>I am displaying my <code>popOverController</code> for iPhone and iPad in the code below. </p>
  
  <pre><code> ViewController *vc = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
  
  if ([UIDevice currentDevice].userInterfaceIdiom ==
      UIUserInterfaceIdiomPad) {
      vc.preferredContentSize = CGSizeMake(296, 476); //your custom size.
  } else {
      vc.preferredContentSize = CGSizeMake(252, 436.5);
  }
  
   vc.modalPresentationStyle = UIModalPresentationPopover;
   vc.popoverPresentationController.delegate = self;
   vc.popoverPresentationController.sourceView = self.view;
   vc.popoverPresentationController.sourceRect = CGRectMake(screenWidth / 2, self.view.height / 2, 1, 1);
  
  [self presentViewController:vc animated:YES completion:nil];
  
  UIPopoverPresentationController *popOverController =  vc.popoverPresentationController;
  popOverController.permittedArrowDirections = 0;
  </code></pre>
  
  <p>However, there seems to be a class size issue occurring. It seems that iPhone size is being used and not the iPad size at all even when running an iPad device. Eventhough in interface builder it shows two different sizes for the buttons depending on the device that is selected. </p>
  
  <p>Edit: For example, I have a viewcontroller.xib that has buttons. There two different button sizes depending on the actual device. On the iPhone, the buttons have a dimension of 50 x 50. On iPad it has a dimension of 430 x 430. In interface builder, this shows up correctly. However, when running an iPad device, the buttons show as 50 x 50 when it suppose to be 430 x 430. </p>