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.