在嵌入UITabBarController

时间:2016-05-11 01:31:12

标签: ios swift storyboard

我有UISplitViewController primaryViewControllersecondaryViewController,每个UINavigationBar都有一个黑色和半透明的<{1}}。

在下面的图片中,您可以看到primaryViewController&#39; navigationBarnavigationBar的{​​{1}}见面。在secondaryViewController中嵌入UINavigationControllers的{​​{1}}之后,我可以看到两者的颜色都已被更改。

如何防止这种情况发生,或至少使每个ViewControllers的颜色相互冲洗?从第二个屏幕截图中可能看起来不太明显,但UITabBarControllers NavigationBarprimaryViewController navigationBar看起来有很大不同,就好像主要的VC导航栏一样它的半透明度被删除了(虽然它显然没有,因为它仍然模糊了它下面的任何观点。)

secondaryViewController中嵌入UINavigationControllers之前:

Original

UITabBarController嵌入UINavigationControllers

之后

After Being Embedded in UITabBarController

我没有任何代码要分享,因为这完全是在故事板中完成的,没有子类,UITabBarController之前和之后都嵌入UINavigationControllers属性保持不变。我已多次检查过每组UITabBarControllersUINavigationController的属性是否相同。

1 个答案:

答案 0 :(得分:0)

想出来:这是一个只在iOS 9.3中的iOS模拟器中出现的Bug。