<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceTable/numberOfRows",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceTable(py)numberOfRows"
  },
  "title" : "numberOfRows"
}
-->

# numberOfRows

The number of row controllers available for you to retrieve.

```
var numberOfRows: Int { get }
```

## Discussion

The value of this property is `0` until you call the [`setRowTypes(_:)`](/documentation/WatchKit/WKInterfaceTable/setRowTypes(_:)) or [`setNumberOfRows(_:withRowType:)`](/documentation/WatchKit/WKInterfaceTable/setNumberOfRows(_:withRowType:)) method. After calling one of those methods, this property contains the number of row controllers that were created.

---

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)