swift - iOS - Interface Builder - Autolayout two labels -


not sure how use autolayout on 2 highest labels in second prototype cell here:

enter image description here

we'll call labels labelx , labely.

basically labelx (selected) left-aligned 10 pts uiimageview left, , labely (floating right) 0 pts right superview. need labelx end before overlaps labely, in case former super long.

i tried adding constraint labelx of trailing space labely, , altered hugging priority of 1 or other 250 produces weird results.

thanks dan's comment arrived @ solution setting both horizontal content compression resistance of labelx , horizontal content hugging priority lower of labely.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -