There is a table, it has 3 custom cells. Depending on the type of data, one or another cell is taken. But the data is of different sizes.

In all cells, the data is inserted into 3 textView and one imageView . It is necessary that the cell was the right size, depending on all this content.

In heightForRowAtIndexPath calculate the sizes, and I return the size. It seems like the size I get is correct, but the cell still turns out to be standard, the size gets from what is indicated in the storyboard and all cells are the same size. Ps, I searched Google for 3 days.

  • And heightForRowAtIndexPath precisely caused? - Max Mikheyenko 6:08
  • And the cells are not like Static Cells in Interface Builder, by chance, collected? - bteapot
  • exactly called, the static is not worth it) - user195138

0