I am building the chat app in which I am using the automatic dimensions of table view for cells but height for cell is not working properly for some cells.
Asked
Active
Viewed 53 times
2 Answers
1
You need to set contentcompressionresistance(vertical) to 1000 and contenthuggingpriority (vertical) to 1000

amar
- 4,285
- 8
- 40
- 52
-
@RanaAsad have you set automatic dimension true and estimated height for tableview? – amar Apr 29 '19 at 12:44
-
I also set that in viewDidLoad – Asad Yasin Apr 29 '19 at 12:45
-
please check the view hierarchy of that cell – Asad Yasin Apr 29 '19 at 12:52
0
I think you should add the greaterThanOrEqualTo
constraint for the label height

Alastar
- 1,284
- 1
- 8
- 14
-
no luck first time view height is ok but when I scroll the table view then it shows issue in height and I am finding the solution from one month but no luck – Asad Yasin Apr 29 '19 at 11:07
-