Neil Shweky
Neil Shweky

Reputation: 893

Constraint/Autolayout bar hidden, Xcode 6

In my storyboard file, I would like to add constraints, but the button to insert constraint is not shown! Any idea how to get it back?

Upvotes: 21

Views: 14502

Answers (4)

Quit and reopen. I found out that works the best in Xcode 11 and above. there is no "Auto layout" click option in Xcode 11 so just quit and reopen

Upvotes: 0

ScottyBlades
ScottyBlades

Reputation: 14043

Quiting Xcode and reopening worked for me.

Upvotes: 17

YoonHo
YoonHo

Reputation: 1066

I found that sometimes constraints are not shown when wantsLayer property is checked in the Interface Builder. (only on OSX, not on iOS)

Upvotes: 0

Frankie
Frankie

Reputation: 11928

Make sure auto layout is enabled if you want to use the auto layout controls.

Autolayout Enabled: Autolayout enabled

Autolayout Disabled: Note the controls are missing.

Autolayout disabled

If you're looking to use auto layout with UIScrollView it should probably be asked in another question. But very briefly, when using auto layout, the place most people trip up is that UIScrollView determines its content size based on your constraints within the scrollview. If those are set right, you should be good to go.

Good luck.

Upvotes: 60

Related Questions