node ninja
node ninja

Reputation: 32986

How to change UIView size in Interface Builder

In Interface Builder when I look at the size inspector for the view, it's showing 320x416 and it's grayed out so I can't change it. How can this be made editable?

Upvotes: 10

Views: 5374

Answers (2)

Rose Perrone
Rose Perrone

Reputation: 63506

Change the UIView's "Size" in the "Simulated Metrics" area in the inspector to "Freeform". Then you can change the Width and Height in "View" area in the inspector.

enter image description here

enter image description here

enter image description here

Upvotes: 15

danno
danno

Reputation: 41

if you have any of the metrics (status bar, top navigation bar, etc) it won't let you resize the view.

Upvotes: 4

Related Questions