Type Method

reloadRootControllers(withNames:contexts:)

Loads the specified interface controllers and rebuilds the app’s page-based interface.

Declaration

class func reloadRootControllers(withNames names: [String], contexts: [Any]?)

Parameters

names

An array of 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.

Discussion

Call this method to reload the pages in your app’s page-based interface:

  • At launch time. Use this method to customize the set of pages you want displayed.

  • At runtime. Use it to change the active set of pages, adding or removing pages as needed.

See Also

Deprecated Symbols

func presentController([(name: String, context: AnyObject)])

Presents a page-based interface modally.

Deprecated
func handleAction(withIdentifier: String?, forRemoteNotification: [AnyHashable : Any])

Delivers a remote notification payload and a user-selected action to the interface controller.

Deprecated
func handleAction(withIdentifier: String?, for: UILocalNotification)

Delivers a local notification payload and a user-selected action to the interface controller.

Deprecated
func handleUserActivity([AnyHashable : Any]?)

Responds to Handoff–related activity.

Text Response Key

Keys for retrieving text response information.