Size Popover using UINavigationController in storyboard

I created an iPad app containing a popover view built into the navigation controller. I like to use the Storyboard as much as possible, and installing "Use Explicit Size"in Xcode gives me the correct size of my popover on the iPad. But it does not resize the view UINavigationControllerand its built-in UIViewControllerswhen viewing the storyboard in Xcode.

This is pretty annoying as the size of my view in Xcode does not match the actual size of the popover.

So my problem is not setting the correct popover size (I also know that I can do this with code), but I want the views in the storyboard to display the actual size of my views.

What is the correct way to create viewControllers built into the navigation controller using storyboards?

+5
source share
1 answer

For views embedded in the navigation controller, you can resize them in the storyboard by following these steps:

  • Select a view controller.
  • Go to the Attributes inspector in the "Simulated metrics" section and select "Size: Free Form."
  • Select the View Controller view.
  • Go to the Dimension Inspector and change the width and height.

After that, the presentation should be correctly defined in the storyboard.

Unfortunately, I do not know how to change the size of the navigation controller.

+9
source

All Articles