<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableView/rowHeight",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableView(py)rowHeight"
  },
  "title" : "rowHeight"
}
-->

# rowHeight

The default height in points of each row in the table view.

```
var rowHeight: CGFloat { get set }
```

## Discussion

Use this property to specify a custom height for the cells in your table view. The default value of this property is [`automaticDimension`](/documentation/UIKit/UITableView/automaticDimension), which causes the table view to choose an appropriate height based on your cell’s content.

If you create a self-sizing cell in Interface Builder, the table view changes the default row height to the value you set in Interface Builder. To get the expected self-sizing behavior for a cell that you create in Interface Builder, you must explicitly set [`rowHeight`](/documentation/UIKit/UITableView/rowHeight) to [`automaticDimension`](/documentation/UIKit/UITableView/automaticDimension) in your code.

The table view ignores the value of this property if its delegate implements the [`tableView(_:heightForRowAt:)`](/documentation/UIKit/UITableViewDelegate/tableView(_:heightForRowAt:)) method. Prefer the use of this property over the delegate method when specifying row heights. When you implement the delegate method, the table view must call that method for every row of the table, including those that are offscreen. For tables with large numbers of rows (1000 or more), calling that method many times can negatively impact performance.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)