user3523990
user3523990

Reputation: 1

Place content under iOS UITabBar

I'm trying to place my content under UITabBar. I created a Storyboard with controller in it and attached UIView to the bottom of content view of that controller(with constraints). After that, i created another Storyboard with UITabBarController and linked one of the tabs to the first Storyboard by storyboard reference. And the problem is that my UIView appearing always above the UITabBar while i want it to be under tab bar. Is there any way to achieve my goal?

Storyboard with UITabBarController

Storyboard with my view attached to the bottom of the content view

Upvotes: 0

Views: 130

Answers (1)

Ketan Parmar
Ketan Parmar

Reputation: 27438

For using tabbarcontroller you should follow below scenario :

Drag tabbarcontroller to canvas (interfacebuilder), it will comes with two default view controllers. That means initially you have two tabs.

If you want more tab the drag another view controller to interface builder and then from tabbarviewcontroller ctrl + drag to that new View controller and from popup select relationship segue (viewController).

By this way you will able to new tab in tabbarcontroller and view in you tabs will not cover tabbar.

Upvotes: 0

Related Questions