@implementation AppDelegate { SPViewController *_viewController; UIWindow *_window; } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // create a full-screen window CGRect screenBounds = [UIScreen mainScreen].bounds; _window = [[UIWindow alloc] initWithFrame:screenBounds]; // start up Sparrow _viewController = [[SPViewController alloc] init]; [_viewController startWithRoot:[Game class] supportHighResolutions:YES doubleOnPad:YES]; // activate the window [_window setRootViewController:_viewController]; [_window makeKeyAndVisible]; return YES; } @end