<!--
{
  "availability" : [
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceController/reloadRootPageControllers(withNames:contexts:orientation:pageIndex:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceController(cm)reloadRootPageControllersWithNames:contexts:orientation:pageIndex:"
  },
  "title" : "reloadRootPageControllers(withNames:contexts:orientation:pageIndex:)"
}
-->

# reloadRootPageControllers(withNames:contexts:orientation:pageIndex:)

Loads the specified interface controllers and rebuilds the app’s page-based interface for the given scrolling orientation.

```
class func reloadRootPageControllers(withNames names: [String], contexts: [Any]?, orientation: WKPageOrientation, pageIndex: Int)
```

## Parameters

`names`

An array of <doc://com.apple.documentation/documentation/Foundation/NSString> objects, each of which contains the identifier of an interface controller in your storyboard file. The order of the identifiers in the array defines the order of the corresponding interface controllers in the page-based interface.

`contexts`

An array of objects of type `id`. Use this parameter to pass context objects to each of the interface controllers loaded into the page-based interface. The first object in the array is passed to the first interface controller, the second object is passed to the second interface controller, and so on.

`orientation`

The scrolling orientation for the page-based interface. For a list of valid values, see [`WKPageOrientation`](/documentation/WatchKit/WKPageOrientation).

`pageIndex`

The index of the page that the system displays in the page-based interface.

## Discussion

Call this method to create or modify your app’s page-based interface:

- **At launch time.** Use this method to customize the set of pages you want displayed, and to set the scrolling orientation.
- **At runtime.** Use this method to change the active set of pages or the orientation, adding or removing pages as needed.

---

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)