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: enter image description here

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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -