简体   繁体   中英

UITabBarController's moreNavigationController and Navigation Bar

I have UITabBarController with 5+ view controllers (each embedded in its own UINavigationController). Some of them hides navigation bar, and when I navigate to these view controllers from "More" tab and back, navigation bar is hidden for "More" tab. As for me this behaviour is very unexpected. Is there some fix?

Here is screenshot: 在此处输入图片说明

user3237732:

I had a similar issue with 'UITabBarController' with its own 'UINavigationController' and navigating between two different views that were connected with "to" and "back" buttons.

Every time I pressed the Back button, I found either the navigation bar or tabBars hidden. By trial and error what fixed this was (1) Going into the Atributes inspector in storyboard (2) Goto 'Bottom Bar' line under "Simulated metrics" and change 'inferred' to another option like 'Translucent'.

This fixed the issues.

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