0

I'm new to storyboarding and I'm just wondering is it possible to link one UITabBarController to another? How would I go about replacing the Tabs of the 1st TabBarViewController with the 2nd TabBarViewControllers tabs when opening the 2nd TabBarViewController?

My StoryBoard I have linked the mainTabbarViewController using Relationship seque - ViewController

4

1 回答 1

1

做到这一点的方法是拥有一组视图控制器。所以你想“切换”选项卡视图控制器,你基本上删除所有当前的,然后提供另一组。您不能将一个嵌入另一个内部。

如果您真的想这样做,您可以在您的 appDelegate 中设置一些方法来实际将一个选项卡控制器换成另一个,但这太过分了。

我在一个运输应用程序中做了类似的事情——我有一个登录视图,它成为应用程序的 rootViewController,直到用户登录。然后我转换到一个选项卡控制器(淡入和淡出)——看起来不错。

于 2013-10-26T22:14:17.257 回答