UITabBarController *tabBarController = [[UITabBarController alloc] init]; UIViewController *controller1 = [[YourViewController alloc] init]; UIViewController *controller2 = [[YourViewController alloc] init]; tabBarController.viewControllers = [NSArray arrayWithObjects: controller1, controller2, nil]; // set as the root window self.window.rootViewController = tabBarController;