Declared in TiRootController.h

Overview

The protocol for root controller. It is not intended to be implemented by clients.

Tasks

Instance Methods

didHideViewController:animated:

Tells the root controller that the view controller was hidden.

- (void)didHideViewController:(UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller hidden.

animated

The animation flag.

Declared In

TiRootController.h

didKeyboardBlurOnProxy:

Tells the root controller that the keyboard was blurred.

- (void)didKeyboardBlurOnProxy:(TiViewProxy<TiKeyboardFocusableView> *)blurredProxy

Parameters

blurredProxy

The view proxy that blurred keyboard focus.

Declared In

TiRootController.h

didKeyboardFocusOnProxy:

Tells the root controller that the keyboard received a focus.

- (void)didKeyboardFocusOnProxy:(TiViewProxy<TiKeyboardFocusableView> *)visibleProxy

Parameters

visibleProxy

The view proxy that received keyboard focus.

Declared In

TiRootController.h

didShowViewController:animated:

Tells the root controller that the view controller was shown.

- (void)didShowViewController:(UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller shown.

animated

The animation flag.

Declared In

TiRootController.h

isTopWindow:

Whether or not the window proxy is the top window.

- (BOOL)isTopWindow:(TiWindowProxy *)window

Parameters

window

The window proxy

Return Value

YES if the window proxy is the top window, NO otherwise.

Declared In

TiRootController.h

repositionSubviews

Tells the root controller to reposition all its subviews.

- (void)repositionSubviews

Declared In

TiRootController.h

resizeView

Tells the root controller to resize its view to the size of main screen.

- (CGRect)resizeView

Return Value

The bounds of the view after resize.

Declared In

TiRootController.h

willHideViewController:animated:

Tells the root controller that the view controller will hide.

- (void)willHideViewController:(UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller to hide.

animated

The animation flag.

Declared In

TiRootController.h

willShowViewController:animated:

Tells the root controller that the view controller will show.

- (void)willShowViewController:(UIViewController *)viewController animated:(BOOL)animated

Parameters

viewController

The view controller to show.

animated

The animation flag.

Declared In

TiRootController.h

windowClosed:

Tells the root controller that a window was closed.

- (void)windowClosed:(UIViewController *)closedViewController

Parameters

closedViewController

The closed view controller.

Declared In

TiRootController.h

windowFocused:

Tells the root controller that a window became focused.

- (void)windowFocused:(UIViewController *)focusedViewController

Parameters

focusedViewController

The focused view controller.

Declared In

TiRootController.h