0

我制作了一个带有 5 个选项卡的基于选项卡的控制器,在第一个选项卡上,有一个按钮可以调用模态视图。

但是当一个模态视图出现时,它上面没有标签栏。

如何在显示的模态视图中显示标签栏?

4

2 回答 2

0

例如,如果 FirstViewController 是您的第一个标签栏的第一个 viewController,您应该这样做:

[FirstViewController.view addSubview:theViewYouWantToShow];

于 2013-02-14T04:55:53.650 回答
0

If you'll call a viewController using presentModelViewController, it'll hide the tabbar of the application. You can use either of 2 way:

  1. Set navigationController in first tab and push anotherViewController (without animation if you don't wanna show push effect)
  2. Or as Sumit suggested add anotherViewController.view as subView on firstViewController
于 2013-02-14T05:04:04.030 回答