UIViewController


super: UIResponder (on iOS)

This class is reserved and cannot be directly instantiated.

Properties

  • var supportedInterfaceOrientations: InterfaceOrientationMask Returns all of the interface orientations that the Window supports.

  • var title: String A String that provides the current title of the window or navigation.

  • var interfaceOrientation: InterfaceOrientation Convenience property that provides the current orientation of the interface. (read-only)

  • var editing: Bool A Boolean value indicating whether the view currently allows the user to edit the contents.

  • var automaticallyAdjustsScrollViewInsets: Bool A Boolean value that indicates whether the view should automatically adjust its scroll view insets.

  • var parent: Window or NavigationBar The parent container (NavigationBar, TabBar, etc.). (read-only)

  • var presentingWindow: Window or NavigationBar The Window that presented this Window modally. If the Window was not presented modally, but one of its ancestors was, this property contains the Window that presented the ancestor. If neither the current Window or any of its ancestors were presented modally, the value in this property is null. (read-only)

  • var presentedWindow: Window or NavigationBar The Window that is presented modally by this Window. (read-only)

  • var navigationBar: UINavigationController The nearest ancestor in the Window hierarchy that is a NavigationBar. (read-only)

  • var tabBar: UITabBarController The nearest ancestor in the Window hierarchy that is a TabBar. (read-only)

  • var pageSplit: UISplitViewController The nearest ancestor in the Window hierarchy that is a PageSplit. (read-only)

  • var objectName: String The name of the object.

Methods

  • func isViewLoaded(): Bool Returns a Boolean value indicating whether the view is currently loaded into memory, it does not attempt to load the view if it is not already in memory.

  • func updateStatusBar() Indicates to the system that the status bar attributes have changed.

Enums

InterfaceOrientationMask

  • .All
  • .AllButUpsideDown
  • .Landscape
  • .LandscapeLeft
  • .LandscapeRight
  • .Portrait
  • .PortraitUpsideDown

InterfaceOrientation

  • .LandscapeLeft
  • .LandscapeRight
  • .Portrait
  • .PortraitUpsideDown