【发布时间】:2011-03-01 06:51:06
【问题描述】:
如果我使用自定义 UITableViewCell,是否需要设置 heightForRowAtIndexPath?在我的 NIB 中,我已经设置了单元格高度。
当我覆盖 heightForRowAtIndexPath 时,单元格的内容不会出现,即使它设置为 NIB 中定义的高度。
如果我不覆盖 heightForRowAtIndexPath 单元格的内容会出现,但是由于默认高度不够大,所以会溢出。
【问题讨论】:
标签: iphone objective-c cocoa-touch uitableview interface-builder