ios - Autolayout - 2 Labels with dynamic length -


i have question autolayout - dont have problems using autolayout, if cell label has dynamic length - case ill got 2 labels, 1 top label dynamic length, , second 1 under first label.

ill tried set top label leading, trailing, fixed width (its ipad landscape app, want have , exact with) - , second 1 bottom, trailing, , set leading first label. here:

enter image description here enter image description here enter image description here

but unable bring work that:

both labels should have dynamic length - update cell height automatically. width of both labels 700px, width margin top, right , bottom 8.

ill forgot say, left label should have dynamic height too.

any ideas? in advance!

errors after using "lukas" tipp:

enter image description here

by default, both labels have same hugging , resistance priority, making 1 of them less other fix problem. ps, i'd avoid using magic numbers 8 in auto layout, instead use standard value


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -