I am new to this and kind of stuck in understanding how to resolve it.
I have a view (freeform) created in xib and I want to add constraints to the view based on the sizes.
Each of the button is inside a view. I want to add the constraints for all of them such that based on the screen size they automatically resize. When I try to "Add missing Constraints" it just messes up the whole view. Can anyone help me understand how the resizing works when we would have to divide the screen such that 3 views are equally divided. ( 3 on the top half and 3 on the bottom half)
Thanks in advance.
This approach allows you to create a dynamically resizable xib with a set amount of subviews/buttons.
Since you mention "Add missing constraints" I will assume you're using AuotLayout. First of all, I recommend you to not use "Add missing constraints" as it's very unpredictable, and you'll rarely receive the result you want.
To add a Static amount of buttons to a xib I would do the following: