Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't add constraints in xib

I have a xib but I can't add constraints. When I control click and drag I can't do anything also the buttons at the bottom I can't do anything with it.

I'm using xCode 11.

enter image description here

like image 995
user1007522 Avatar asked Dec 07 '19 09:12

user1007522


People also ask

How do I add constraints in Xib?

Select the options for aligning the selected views, and click the Add Constraints button. Interface Builder creates the constraints needed to ensure those alignments.


1 Answers

Check if the layout option is set to automatic or not for the views/buttons etc for which you trying to add constraints. Attaching a screenshot for reference, hope this helps. enter image description here

like image 165
Sumit Avatar answered Sep 18 '22 13:09

Sumit