简体   繁体   中英

Second tab is always a black screen

I have a UITabBarController that has 2 items. Each of them points to a different UINavigationController , however both of them point to the same UIViewController . The first item is displayed correctly but the second on is not. What's happening. No code is necessary for reproducing it.

在此处输入图片说明

A view controller can't be in different navigation controllers at the same time. You need two scenes here. This is one reason why I don't like Storyboards.

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