Ios5 使用故事板从iOS 5中的ViewController导航到TabBarController

Ios5 使用故事板从iOS 5中的ViewController导航到TabBarController,ios5,uiviewcontroller,uitabbarcontroller,uistoryboard,uistoryboardsegue,Ios5,Uiviewcontroller,Uitabbarcontroller,Uistoryboard,Uistoryboardsegue,我开始用TabBarController开发我的应用程序,但最近我意识到在访问应用程序之前对用户进行身份验证的作用。因此,我在TabBarContoller之前创建了一个登录页面(2个选项卡和2个视图)。但现在我无法将控制器从ViewController推送到TabBarController。 到目前为止,我尝试的是:(在用户点击登录页面上的提交按钮后): 这里,twoOptions是我在Interface Builder中为StoryBoard中的TabBarController命名的标识符

我开始用TabBarController开发我的应用程序,但最近我意识到在访问应用程序之前对用户进行身份验证的作用。因此,我在TabBarContoller之前创建了一个登录页面(2个选项卡和2个视图)。但现在我无法将控制器从ViewController推送到TabBarController。 到目前为止,我尝试的是:(在用户点击登录页面上的提交按钮后):

这里,twoOptions是我在Interface Builder中为StoryBoard中的TabBarController命名的标识符

请引导我

我浏览了以下链接: 但仍然不明白需要做些什么。我无法推送视图

这是最新的


我不知道你为什么要使用故事板,但代码也很容易做到。

@Gilles在26.5k的声誉下,你可能会看到像国际空间站看地球那样的故事板。;)我希望我也是这样,但对于像我这样的初学者来说,它似乎是一个很好的工具:)
   UIStoryboard*  sb = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
   UIViewController* vc = [sb instantiateViewControllerWithIdentifier:@"twoOptions"];
   [self.navigationController pushViewController:vc animated:YES];
UITabBarController *tabBarController=[[UITabBarController alloc]init];
tabBarController.viewControllers = [NSArray arrayWithObjects:firstViewController,secondViewController,thirdViewController, nil];
[self presentModalViewController:tabBarController animated:NO];