刚学的ios,viewController有什么办法跳转到tabbarController
objectivec吧
全部回复
仅看楼主
level 1
纯天然抖S 楼主
我自己的写了一个模仿登陆跳转的小程序,初始界面是一个ViewController的界面,点击按钮以后会跳转到一个tabbarController的界面上,但是要怎么做才会跳转到tabBar的根控制器上?
我用了一下面这个方法没法实现。来这边求助各位了。
下面是我写的代码,这个方法链接的是登陆按钮。这个会直接报错,tabBar是我给给控制器的stroyboardID。
- (IBAction)loginButton:(id)sender {
UITabBarController *tabView = [self.storyboard instantiateViewControllerWithIdentifier:@"tabBar"];
[self.tabBarController showDetailViewController:tabView sender:self];
}
2016年02月29日 09点02分 1
level 8
方法多了去了,导航栏入栈,模态,获取主窗口单例设置根视图
2016年06月08日 16点06分 2
1