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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -