【发布时间】:2015-03-10 08:05:00
【问题描述】:
我试图使用 estimatedHeightForRowAtIndexPath 来实现具有 AutoLayout 的动态单元格高度,并在 iOS8 中按预期工作,但在 iOS7.1 中这样说:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MyProject.ViewController tableView:heightForRowAtIndexPath:]: unrecognized selector sent to instance 0x79e91350'
如果我定义heightForRowAtIndexPath,错误就会消失,但单元格不会自动调整大小。有什么想法吗?
更新:它确实在 iOS 7.0 中可用,对吧?
【问题讨论】:
标签: uitableview ios7 autolayout ios7.1