【发布时间】:2012-11-01 17:32:46
【问题描述】:
抱歉英语不好。
我有 MainViewController 和 TabBarController 在情节提要中有两个视图。
当我在MainviewController 中按下按钮(使用模态segue)时 - 应用程序根据条件切换到firstTabBarView 或secondTabBarView。它工作正常,但在那之后我在我的任何 tabBarViews 的底部丢失了我的TabBarControls。
UPD:按下条形按钮后的操作
-(IBAction)barButtonPressed:(id)sender
{
if (condition !=0 ) {
[self performSegueWithIdentifier:@"segue1" sender:nil];
} else {
[self performSegueWithIdentifier:@"segue2" sender:nil];
}
}
【问题讨论】:
-
向我们展示相关代码总是有帮助的。 ;)
标签: ios storyboard