Storyboard Global Tint UITabBar Tint在IOS 7.1中发生了变化 [英] Storyboard Global Tint UITabBar Tint changed in IOS 7.1

查看:127
本文介绍了Storyboard Global Tint UITabBar Tint在IOS 7.1中发生了变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是否忽略了使用Global Tint设置应用程序整体色彩的一些内容?

Have I overlooked something in just using the Global Tint to set the apps overall tint?

在IOS 7.1更新后,我在IOS 7.06中运行的应用程序今天突然发生了变化。

My App that worked in IOS 7.06 has suddenly changed today after IOS 7.1 Update.

基本故事板,基于标签的应用程序,全局色调(橙色)设置在IB的故事板中。

Basic Storyboard, Tab based App with Global Tint (Orange) set in storyboard in IB.

今天更新到IOS 7.1 IPhone 5S,它显示标准的蓝色色调

Today updated to IOS 7.1 IPhone 5S and it is showing the standard blue tint

IPhone 4 IOS 7.06,相同的应用程序TabBar色调是应该的。

IPhone 4 IOS 7.06, same app TabBar tint is as it should be.

必须设置如下

[[UITabBar appearance] setTintColor:[UIColor orangeColor]];

在TabBarControllers ViewDidLoad中更正问题。

in the TabBarControllers ViewDidLoad to correct the issue.

可能是我的其他设置不正确吗?

Could it be I have something else set incorrectly?

推荐答案

这是7.1测试版中的已知错误固定在最终版本中。

This is a known bug in the 7.1 betas which was never fixed in the final release.

与您一样,我遇到了同样的问题,不得不手动将其设置为修复。

Like you, I have had the same problem and had to set it manually as a fix.

如果你想设置一个全局色调颜色,建议在 -application:will / didFinishLaunchingWithOptions:中这样做。或者,如果您想为每个视图控制器指定特定颜色,请在 prepareForSeque:中执行此操作。

It is recommended that if you want to set a global tint color, to do so in -application:will/didFinishLaunchingWithOptions:. Alternatively, if you want specific colors for each view controller, to do so in prepareForSeque:.

我个人有尝试在我的 UINavigationController root视图中的 -viewWillAppear:animated:中设置它,它似乎工作正常。

Personally I have tried setting it in -viewWillAppear:animated: in my UINavigationController root view and it appears to work fine.

请参阅此处的devforum主题

这篇关于Storyboard Global Tint UITabBar Tint在IOS 7.1中发生了变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆