UINavigationController *rootVC = [[[UINavigationController alloc] initWithRootViewController:[[rootViewController alloc] init]]autorelease]; self.window.rootViewController = rootVC;