Keep TabBar when moving to another view controller

后端 未结 4 994
伪装坚强ぢ
伪装坚强ぢ 2020-12-18 07:29

I have a storyboard like this

-> NavigationController -> LoginView -> TabBarController -> VC1 -> VC2

I didn\'t manage to make a \"move\" from VC1 to VC2 keep

4条回答
  •  青春惊慌失措
    2020-12-18 08:20

    You need to set TabBarContoller as rootViewController of the app. So scheme should be as follow:

    TabBarContoller -> Tab1 -> UINavigationController -> ViewContoller1 -> ViewContoller2.

    In such case you can navigate between ViewContoller1 and ViewContoller2 and TabBarContoller will remain visible.

提交回复
热议问题