20
在我的heightForRowAtIndexPath
方法中,我只想为某些行自定义高度。其余的我希望框架照顾。我会怎么做?如何调用heightForRowAtIndexPath的默认实现?
在我的heightForRowAtIndexPath
方法中,我只想为某些行自定义高度。其余的我希望框架照顾。我会怎么做?如何调用heightForRowAtIndexPath的默认实现?
您可以直接返回tableView.rowHeight
,除非您更改它,否则将其设置为默认值。
返回常数UITableViewAutomaticDimension
。
Available available from iOS 5.0,documented here。