Resize of UIViewController in storyboard

后端 未结 3 780
粉色の甜心
粉色の甜心 2020-12-09 16:30

I want to resize a UIViewController in the storyboard so I can use its UIViewController as a popover view.

On most sites I can read that th

相关标签:
3条回答
  • 2020-12-09 16:41

    You need to take off "Resize View from NIB" in IB attributes tab.

    0 讨论(0)
  • 2020-12-09 16:47

    We follow the following steps to achieve the same:

    1. Drag a UIViewController (this takes a UIView along with it, so no need to add another UIView unless you need more)
    2. Select UIViewController on StoryBoard and set size property to Freeform
    3. Select the UIView and set the height and width values.

    If this doesn't help, you might want to delete the UIView that comes with the UIViewController, add a fresh UIView and repeat #2, and #3 above.

    0 讨论(0)
  • 2020-12-09 16:58
    1. Drag a UIViewController

    2 .Select UIViewController on StoryBoard and set size property to Freeform

    enter image description here

    1. select UIViewController on storyboard Enable user preferred explicit size in Content size in attributes inspector

    enter image description here

    0 讨论(0)
提交回复
热议问题