Create uiTabBarController programmatically

前端 未结 5 2420
隐瞒了意图╮
隐瞒了意图╮ 2021-02-14 09:06

I want to create a UIView for a UITabBarController

Here is my code for the .h file :

@interface TE : UIViewContro         


        
5条回答
  •  面向向阳花
    2021-02-14 09:46

    @Mehdi, just make your TE a UITabBarController instead of a UIViewController which then has a TabBarController in it. Makes it all the more easy to manage your TabBarController. To respond to some others who have indicated that you can have only one TabBarController as the window's rootViewController. That is not the case. A UITabBarController can be instantiated in multiple places where you need a second level menu navigation. Have a TabBar within a TabBar would not make sense, but having a left Navigation Menu and then having a TabBar on each menu item would make sense.

提交回复
热议问题