Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个自定义单元格。其中有一个UILabel. 有没有办法调整标签的高度heightForRow...,而不是在cellForRow...?
UILabel
heightForRow...
cellForRow...
不heightForRowAtIndexPath:,还没有单元格,也没有子视图。
heightForRowAtIndexPath:
所有更改都应在 (1) 中cellForRowAtIndexPath:或 (2) 在 的子类中完成UITableViewCell。
cellForRowAtIndexPath:
UITableViewCell