Saad Qureshi Saad Qureshi - 1 month ago 7
iOS Question

Cannot expand height of TableView cell in TableView Controller

I created a table view controller which is a parent of table view cell inside it:

enter image description here

I have set the default row height of the cell to be 375:

enter image description here

And inside it is a UIImageView which also has a height constraint of 374.

But when I run the app, the height allocated to each row is very less and does not seem to change:

enter image description here

How can I change the change the height to my requirements?

Answer

For the properties of your Table View also you need to mention cell height, check screenshot

enter image description here