每当我的应用程序启动时(仅在iPad上),导航栏会短暂地闪白色,然后弹出其条形色。您可以在此处查看动画GIF:
我正在设置一个UINavigationController子类的色调,在iPhone上这个配置完美运行。
![enter image description here](https://istack.dev59.com/jOoQj.gif)
//This returns a UIColor
self.navigationBar.barTintColor = [[IGVThemeManager sharedManager] themeColor];
self.navigationBar.tintColor = [UIColor whiteColor];
self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor], NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Light" size:20]};
我也尝试过移除子类并通过界面构建器手动设置bar tint颜色,但仍然出现相同的“闪烁”结果。有什么其他可能导致这种情况的想法吗?这种情况发生在模拟器和设备上。注意:如果需要任何想法,此导航控制器作为分割视图控制器的一部分存在。