Reputation: 893
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
Reputation: 11
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
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
Reputation: 11928
Make sure auto layout is enabled if you want to use the auto layout controls.
Autolayout Enabled:
Autolayout Disabled: Note the controls are missing.
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