I have a UITableViewCell
, and i am using UITableViewAutomaticDimension
to automatically calculate the row height.
(I am replicating design of Facebook comments from iOS)
I need all the 4 label's height adjusted to height of their content.
CC = Content compression CH = Content hugging [Horizontal/Vertical]
Label 1: CC = 750/750 CH = 249/750
Label 2: CC = 999/999 CH = 999/999
Label 3: CC = 750/749 CH = 249/749
Label 4: CC = 1000/1000 CH = 1000/1000
Here, Label 2 and Label 4 are the most important labels. I dont want them to shrink anyhow. Label 1 and Label 3 can shrink but to a limit.(let's say 30px)
Let me know if anyone need more info.