Set size of view in NIB / XIB file Set size of view in NIB / XIB file ios ios

Set size of view in NIB / XIB file


In the Attributes inspector, in the Simulated Metrics section, change the size to None. This unlocks the view and you can drag to resize it.

EDIT: As noted in the comments below, in more recent versions of Xcode you must set the attribute to Freeform, not None.


There is the solution for XCode 9.0

Select your view and set simulated Metrics as this :

enter image description here

After this, you can edit your view's size :

enter image description here

DEPRECATED :

There is the solution for XCode 8.1

Select your view and set simulated Metrics as this :

enter image description here

After this, you can edit your view's size :

enter image description here


Such settings:
XIB settings

makes me possible to change view size:
XIB settings

Xcode version: 5.1 (5B130a)