What is the default height of UITableViewCell?

If you want the default dimension on any device you can use: UITableViewAutomaticDimension

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {

    return UITableViewAutomaticDimension;
}

Although 44 pixels is currently the default this is a useful method if your app relies on having the default value set.


When style = UITableViewStyleGrouped, the default height of the top & bottom cells is actually 45.0f (not 44.0f). And, if the grouped table is only one row the cell height will be 46.0f.


It's 44 pixels. Definitely. I'll never forget that number.

44px is also the default height for UIToolbar and UINavigationBar. (Both switch to 32px when autorotated to landscape orientation.)