How can I get the height of a specific row in my UITableView

ios, uitableview

Solution

You can use this

CGRect frame = [tableView rectForRowAtIndexPath:indexPath];
NSLog(@"row height : %f", frame.size.height);

Using `frame.size.height` you can get height of particular row

Swift 3

let frame = tableView.rectForRow(at: indexPath)
print(frame.size.height)

Problem

In my `UITableView` i've set different heights for different rows using the delegate method: `tableView:heightForRowAtIndexPath:` Now given a `NSIndexPath`, I would like to get the height I've previously assigned for a specific row.

Original source