Is it possible to have differing heights in a UITableView Cell when I use several different ways of displaying the cell?

后端 未结 11 1296
一整个雨季
一整个雨季 2020-12-21 19:25

I\'ve spent several days trying to figure this out, but there doesn\'t seem to be a solution. I have a very basic UITableView cell with two labels in it. One of them will be

11条回答
  •  天涯浪人
    2020-12-21 20:01

    What you want to achieve can be done by a simple implementation of heightForRowAtIndexPath from the tableView delegate.

    If you're unsure what cell should have what height you can just calculate it on runtime.

提交回复
热议问题