通过 heightForRow 调整自定义单元格的对象 属性

Adjust custom cell's object property through heightForRow

我有一个自定义单元格。里面是一个UILabel。有没有办法通过 heightForRow... 调整标签高度,而不是 cellForRow...

没有。 heightForRowAtIndexPath: 中还没有单元格,也没有子视图。

所有更改都应在 (1) cellForRowAtIndexPath: 中或 (2) UITableViewCell 的子类中完成。