TabBar overlay on view - IOS

521 Views Asked by At

I shift my TabBar to top like bellow:

class RootMainFatherTabBarUITabBarController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func viewWillLayoutSubviews() {
        //Shift tabs to top page
        tabBar.frame = CGRect(x: 0, y: 0, width: tabBar.frame.size.width, height: tabBar.frame.size.height)
        super.viewWillLayoutSubviews()

    }
}

But TabBar overlay on view and i can't see segue!

1

There are 1 best solutions below

0
Muhammad Ahmad On

you can add tabbar by easy and fast way just open ui-control-view and drag and drop tabbar ADD tab and just click and swipe and drop on the nav view thats you want to open