Iphone 将带有UINavigationBar的UITABBARC控制器推到现有UINavigationBar上
好的,我正在做一个小组项目,我们正在尝试创建一个结果屏幕,它有自己的导航,其中包含两个选项卡栏。我们正在努力推动现有航空业的发展。现在在这个代码的时刻。我们有我们的主应用程序委托,在其中我们实例化了开始导航和选项卡栏Iphone 将带有UINavigationBar的UITABBARC控制器推到现有UINavigationBar上,iphone,ios,uiviewcontroller,uinavigationcontroller,uitabbarcontroller,Iphone,Ios,Uiviewcontroller,Uinavigationcontroller,Uitabbarcontroller,好的,我正在做一个小组项目,我们正在尝试创建一个结果屏幕,它有自己的导航,其中包含两个选项卡栏。我们正在努力推动现有航空业的发展。现在在这个代码的时刻。我们有我们的主应用程序委托,在其中我们实例化了开始导航和选项卡栏 startTabBarController.viewControllers=[NSArray arrayWithObjects:templatesVC,recentJobsVC,profileVC,aboutVC,nil]; startTabBarController.nav
startTabBarController.viewControllers=[NSArray arrayWithObjects:templatesVC,recentJobsVC,profileVC,aboutVC,nil];
startTabBarController.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"D2P_Logo2.png"]];
startTabBarController.navigationItem.titleView.backgroundColor = [UIColor clearColor];
UIBarButtonItem *tempRightBarButton = [[UIBarButtonItem alloc] initWithTitle:@"New"
style:UIBarButtonItemStylePlain
target:self
action:@selector(makeJob)];
[startTabBarController.navigationItem setRightBarButtonItem:tempRightBarButton];
[mainNavBar pushViewController:startTabBarController animated:NO];
[window addSubview:mainNavBar.view];
现在我们要做的是在顶部添加另一个选项卡栏,带有分段导航控制器和选项卡栏控制器
目前,我们正在尝试使用不带xib的UIViewController来执行此操作。我尝试过各种方法,但只得到一个空白屏幕
就我们现有的布局而言,我们有一个导航控制器,它的堆栈上有一个UIAbbarController->UITableViewController->UITableViewController,我们想在上面添加一个UIViewController,其中包含一个UIAvigationController和UIAbbarController
任何建议都将不胜感激。提前谢谢。没关系,我找到了解决办法。最终使用了ModelViewController,然后出现了一个白色栏的问题,我通过搜索这些论坛解决了这个问题,发现我只需在显示ModelViewController之前隐藏状态栏,然后在加载后显示状态栏
无论如何,谢谢。欢迎来到SO-这似乎是您的第一个问题?只是一个提示-编辑器提供代码标记,使您的代码更易于阅读。它甚至包括自动语法高亮显示。我可以建议你编辑这篇文章并尝试一下吗?