Ios 序列图像板序列隐藏目标视图上的选项卡按钮

Ios 序列图像板序列隐藏目标视图上的选项卡按钮,ios,storyboard,Ios,Storyboard,对不起,英语不好。 我有MainViewController和TabBarController,在情节提要中有两个视图。 当我按下我的MainviewController中的按钮(使用模式序列)时,应用程序会根据情况切换到firstTabBarView或secondTabBarView。它工作正常,但在那之后,我丢失了任何tabbar视图底部的tabbar控件 UPD:按下bar按钮后的操作 -(IBAction)barButtonPressed:(id)sender { if (con

对不起,英语不好。 我有
MainViewController
TabBarController
,在情节提要中有两个视图。 当我按下我的
MainviewController
中的按钮(使用模式序列)时,应用程序会根据情况切换到
firstTabBarView
secondTabBarView
。它工作正常,但在那之后,我丢失了任何tabbar视图底部的
tabbar控件

UPD:按下bar按钮后的操作

-(IBAction)barButtonPressed:(id)sender
{
    if (condition !=0 ) {
        [self performSegueWithIdentifier:@"segue1" sender:nil];
    } else {
        [self performSegueWithIdentifier:@"segue2" sender:nil];
    }
}

它正在按照建议工作。模态segue是一个“全屏segue”,它覆盖了您的标准导航堆栈。 如果只想更改选定的viewcontroller,请使用

[yourTabBarControllerInstance setSelectedIndex:index];

向我们展示相关代码总是有帮助的。;)我的noobnes不允许我理解如果我在Storyboard中创建了“yourTabBarControllerInstance”,我是如何得到它的。我现在在iPhone上写,不确定确切的语法。您必须经历:应用程序、委托、主窗口、根视图控制器。它应该是UITabBarController*tb=(UITabBarController*)[[[[UIApplication sharedApplication]委托]窗口]根视图控制器];