如何使用新的自动调整大小功能和 AutoLayout 在 iOS 8 中获取 UITableViewCell 的高度?

How to get the height of UITableViewCell in iOS 8 with new auto sizing feature and AutoLayout?

我正在为 iOS 8 编程。有新功能 - 自动调整大小 UITableViewCells(更多信息 here)。它工作正常。但我想知道某些单元格的高度。

因此,假设新的自动调整大小功能计算了单元格的高度。我有 NSIndexPath 我想知道这个单元格的计算高度 。有什么方法或方法可以得到吗?

PS 我正在使用自动布局。

谢谢!

可以从cell中获取contentView(UIViewclass),获取他的高度