Category of UITableView
Only one property:zc_enableCache
You can make the tableview to auto cache the height of cells by setting the property to YES.
Just for fun!
self.tableView.zc_enableCache = YES;
iOS7+ and ARC
Available through CocoaPods
pod 'ZCTableviewHeightCache'
Here's chinese blog to introduce the details.Click Me