Roman Romanenko
Roman Romanenko

Reputation: 766

Two tab controllers in app

I'm trying to implement this hierarchy in app. I know that maybe its not a good UI solution. But I have designs for an app and I want to implement it.

I want to approach like this:

enter image description here

But I always see FirstTabBarController in ViewControllers which have embeded in SecondTabBarController.

What is the best way to implement this?

Upvotes: 1

Views: 64

Answers (1)

Anuj
Anuj

Reputation: 830

You can try the below approach:

1) On window root controller assign UINavigationController (call it App Navigation Controller)

2) Push and Pop your custom UITabbarControllers to the App Navigation Controller as per your app requirement

3) Handle flow of your custom child controllers of your custom tabar controllers from there only.

Upvotes: 2

Related Questions