Inherits from UIViewController
Conforms to TiOrientationController
TiRootController
UIApplicationDelegate
Declared in TiRootViewController.h

Overview

The class represent root controller in a view hierarchy.

Tasks

Properties

keyboardVisible

Returns visibility of on-screen keyboard.

@property (nonatomic, readonly) BOOL keyboardVisible

Declared In

TiRootViewController.h

windowOrientation

Returns current window orientation.

@property (nonatomic, readonly) UIInterfaceOrientation windowOrientation

Declared In

TiRootViewController.h

Instance Methods

closeWindow:withObject:

Tells the controller to close the specified window proxy.

- (void)closeWindow:(TiWindowProxy *)window withObject:(id)args

Parameters

window

The window proxy to close.

args

Reserved for future use.

Declared In

TiRootViewController.h

focusedViewController

Returns currently focused view controller.

- (UIViewController *)focusedViewController

Return Value

Focused view controller.

Declared In

TiRootViewController.h

manuallyRotateToOrientation:duration:

Tells the controller to rotate to the specified orientation.

- (void)manuallyRotateToOrientation:(UIInterfaceOrientation)newOrientation duration:(NSTimeInterval)duration

Parameters

newOrientation

The new orientation.

duration

The rotation animation duration.

Declared In

TiRootViewController.h

openWindow:withObject:

Tells the controller to open the specified window proxy.

- (void)openWindow:(TiWindowProxy *)window withObject:(id)args

Parameters

window

The window proxy to open.

args

Reserved for future use.

Declared In

TiRootViewController.h

repositionSubviews

Tells the controller to reposition all its subviews.

- (void)repositionSubviews

Declared In

TiRootViewController.h

resizeView

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

- (CGRect)resizeView

Return Value

The bounds of the view after resize.

Declared In

TiRootViewController.h

resizeViewForStatusBarHidden:

Tells the controller to resize its view to the size of main screen adjusted according to visibility of status bar.

- (CGRect)resizeViewForStatusBarHidden:(BOOL)statusBarHidden

Parameters

statusBarHidden

If YES, sets view size as if status bar is hidden; otherwise, does not.

Return Value

The bounds of the view after resize.

Declared In

TiRootViewController.h