2

I have UICollectionViewCell with 2 UILabels that both can have 1 to N lines of text. I would like to use autolayout for calculation of cell height. I have set constraints for labels as follows: UICollectionViewCell

When I run my app, cells are not displayed properly. Layout inspector says that my labels have ambiguous height. I've read quite a lot of possible solutions and tutorials how to achieve self sizing cells, but without any luck. Thanks for help.

Skodik.o
  • 506
  • 4
  • 21

1 Answers1

1

Just set the last label bottom constraint's priority to 749. That's it !!

enter image description here

Mahendra
  • 8,448
  • 3
  • 33
  • 56