beasone
beasone

Reputation: 1085

tab bar always appear in each view controller in IOS. How to fix that?

Now I create a storyboard, its structure likes:

UITabBarController
|--UINavigationController
|   --UIViewControllerA
|      --UIViewControllerA0
|      --UIViewControllerA1
|      --UIViewControllerA2
|   
|--UIViewControllerB

I only need the tab bar appears at the bottom of UIViewControllerA and UIViewControllerB. But now the tab bar appears at the button of UIViewControllerA,UIViewControllerA0, UIViewControllerA1 and UIViewControllerB. Like this: enter image description here This is want I want

enter image description here

The last two pictures is what I want. However, when I enter UIViewControllerA0 or UIViewControllerA1 or UIViewControllerA2, they also have tab bar at the bottom. enter image description here

I don't want the tab bar appear at the button of this view controller(UIViewControllerA1,UIViewControllerA1,UIViewControllerA1). I haven't write any code for UITabBarController. Can this be fixed by storyboard ? Or do I need to fix it in code ?

Upvotes: 1

Views: 1008

Answers (1)

N.Raval
N.Raval

Reputation: 549

This value can also be set from Storyboard for the ViewController(UIViewControllerA0,UIViewControllerA1,UIViewControllerA2):

enter image description here

Upvotes: 1

Related Questions