If your rows are of uniform height, the rowHeight property should get what you want.
Otherwise, UITableViewDataSource expands numberOfRowsInSection and cellForRowAtIndexPath, while UITableViewCell has the rowHeight property.
If you are just trying to get the height of the view by adding the height of the rows, the contentSize property in the UITableView would be better for you.
source share