/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #import "TiViewProxy.h" @protocol TiUIViewController @required - (UIViewController *)childViewController; @optional - (void)viewWillAppear:(BOOL)animated; // Called when the view is about to made visible. Default does nothing - (void)viewDidAppear:(BOOL)animated; // Called when the view has been fully transitioned onto the screen. Default does nothing - (void)viewWillDisappear:(BOOL)animated; // Called when the view is dismissed, covered or otherwise hidden. Default does nothing - (void)viewDidDisappear:(BOOL)animated; // Called after the view was dismissed, covered or otherwise hidden. Default does nothing - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration; @end @interface TiViewController : UIViewController { TiViewProxy *proxy; } -(id)initWithViewProxy:(TiViewProxy*)window; @property(nonatomic,readwrite,assign) TiViewProxy *proxy; @end