ios - Autolayout Constraints Breaking on Widths Equally -
i applying constraints using ib on few views learning purposes. constraint "width equally" applied on red , blue view. apply shows yellow line autolayout constraint. both views have width 258. here image:
this expected behavior. fix it, must add additional constraints until red , blue views constrained.
when view has no constraints on whatsoever, interface builder assumes want literally positioned on canvas currently. however, view has @ least 1 constraint, auto layout takes over. in screenshot, auto layout complaining because have specified width of red , blue views – , each other, in must equal. you'll need make sure both red , blue views have both x , y location , width , height defined.
Comments
Post a Comment