I use autolayout. I am displaying 2 labels in custom UITableViewCell. Label1
is above Label2
. Their text is dynamic.
The issue is the height of one of the labels when displayed is larger than its text.
I tried changing their Content Hugging Priority
.
So what happens is, if that priority is same or Label1
's priority is higher, then Label1
is having exact height to fit its text but Label2
has larger hight than required. And when Label2
's hugging priority is higher than issue is with Label1
's height.
Any idea how to solve it?