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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -