简体   繁体   中英

Application with tab bar and navigation bar in all controllers

I have a problem with adding tab bar to all the controllers in the screen, it's only shown in the controllers that is directly connected to the tab bar. How can I show It in all screens?

这是我目前的主要故事板

I found the answer, my problem was I didn't add navigation controller for each tab bar item, I made only one navigation controller that's why the tab bar didn't appear. The right sequence is:

TabBarItem1 -> NavController1 -> ViewController1 -> ViewController2

TabBarItem2 -> NavController2 -> ViewController1 -> ViewController2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM