Xcode 6.1 - I cannot change xib elements

I have Xcode 6.1 version on Yosemite.

I downloaded the Xcode project from git and when I select the xib file (build with Xcode version 6.1) I see that all elements of the xib file are disabled:

enter image description here

I try to load the project again and I clean the project but the problem persists.

Any ideas?

+3


source to share


1 answer


This is because something is called "size classes". It is a very useful tool for setting specific constraints based on device and orientation.

Each view controller gets 2 hoard sizes: horizontal and vertical, each with 3 possible values: compact, regular, or whatever. For example: "wCompact hRegular" for all iPhones in portrait, and "wAny hAny" is the base configuration (all layouts).



A project can assign these constraints to a specific combination of them.

You probably have something blue at the bottom of the view that says "wCompact hCompact" (or "wCompact hRegular" ...). Click on the label and switch it to other combinations until restrictions are enabled.

+2


source







All Articles