Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 746
node ninja Avatar asked Sep 22 '10 16:09

node ninja


People also ask

How do I get UIView size?

If you want to get the view's size: float viewWidth = view. Frame. Width; float viewHeight = view.


1 Answers

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

like image 75
Rose Perrone Avatar answered Oct 11 '22 18:10

Rose Perrone