Interface Builder改变文本颜色错误? [英] Interface Builder change text color bug?

查看:122
本文介绍了Interface Builder改变文本颜色错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这让我开车香蕉..

如果我在界面构建器中选择UITextField并通过手动输入RGB值来改变文本颜色,它会改变颜色整个框架和背景。

If I select a UITextField in interface builder and go to change the text colour by manually entering the R G B values it changes the colour of the entire frame and background.

但是,如果我使用滑块更改它,它只会改变文字颜色。

However if I change it using the sliders it changes the text colour only like I want.

导致我认为它是一个错误......这是否会发生在其他人身上?

Leads me to think its a bug... does this happen for anyone else?

推荐答案

我也看到了最新版本的Xcode。当手动输入RGB值时,UILabel属性检查器中的文本颜色和背景颜色控件都会同时更改,而如果我选择另一种颜色(例如,从颜色选择器中的蜡笔或调色板视图),则只有文本颜色控制值的变化。

I see this happening with the latest version of Xcode as well. Both the Text Color and Background Color controls in the UILabel attribute inspector change at the same time when manually typing in a R G B value, whereas if I choose a color another way (e.g. from the crayons or palette views in the Color picker), only the text color control value changes.

我认为这是一个错误(应该通过 http:// bugreporter提交) .apple.com ),但是它再次通过几个版本的Xcode持续存在,因此可能是他们预期的行为。但我绝对同意你应该把它作为一个错误提交。

I'd assume this is a bug (and should be filed via http://bugreporter.apple.com), but then again it's persisted through a few versions of Xcode so this may be their expected behavior on purpose. But I'd definitely agree you should file it as a bug.

这篇关于Interface Builder改变文本颜色错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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