TiRootViewController Class Reference
Inherits from | UIViewController |
Conforms to | TiOrientationController TiRootController TiUIViewControllerIOS6Support UIApplicationDelegate |
Declared in | TiRootViewController.h |
Tasks
-
keyboardVisible
Returns visibility of on-screen keyboard.
property -
windowOrientation
Returns current window orientation.
property -
– focusedViewController
Returns currently focused view controller.
-
– resizeView
Tells the controller to resize its view to the size of main screen.
-
– resizeViewForStatusBarHidden
Tells the controller to resize its view to the size of main screen adjusted according to visibility of status bar.
-
– repositionSubviews
Tells the controller to reposition all its subviews.
-
– manuallyRotateToOrientation:duration:
Tells the controller to rotate to the specified orientation.
-
– openWindow:withObject:
Tells the controller to open the specified window proxy.
-
– closeWindow:withObject:
Tells the controller to close the specified window proxy.
Properties
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