为什么不反映故事板属性,我已经使用属性检查器面板中设置一个UILabel文本? [英] Why doesn't the storyboard reflect the text attributes I've set to a UILabel using the attributes inspector panel?

查看:180
本文介绍了为什么不反映故事板属性,我已经使用属性检查器面板中设置一个UILabel文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对故事板一个UILabel。默认的文本显示标签。然后我去的属性检查器,然后选择属性文本样式。当我点击文本字段,我与几个字体psented $ P $从在新窗口中选择。我看到,在这种情况下,默认的文本已被设置为黑体尺寸17.0。当翻翻字体presented我决定用一个叫ORC性病。这是固定宽度的家庭的一部分。

I have a UILabel on the storyboard. The default text reads "Label". I then go to the attributes inspector and select the Attributed text style. When I click on the Text field I am presented with several fonts to choose from in a new window. I see that the default text in this case has been set to Helvetica size 17.0. When looking through the fonts presented I decide to use one called ORC A Std. This is part of the fixed width family.

因为我想用这种字体,我回到了我的属性检查器,然后改字标签为500。有了它强调我将字体更改为ORC性病。

Since I want to use this font, I go back into my attributes inspector and change the word Label to 500. With it highlighted I change the font to ORC A Std.

我这并读取标签(在黑体)现在的表述500(ORC中的一个标准)。优秀。这就是我想要的。一切都是我多么希望在属性检查器面板中。

My text that did read Label (in Helvetica) now reads 500 (in ORC A Std). Excellent. That's what I want. Everything is how I want in the attributes inspector panel.

不幸的是我在故事板标签已经从标签改变(黑体)到500(黑体中)。为什么它不显示作为字体ORC性病?我然后双击直接点击标签上更改文本到别的东西。当我点击它来编辑它,它显示500(ORC中的一个标准)。我改变它说750(它仍然在ORC一个std)。当我做编辑它,我点击了它,它现在读取750(黑体中)。

Unfortunately My label on the storyboard has changed from Label (in Helvetica) to 500 (in Helvetica). Why doesn't it display as the font ORC A std? I then double click directly on the label to change the text to something else. When I click on it to edit it, it shows 500 (in ORC A Std). I change it to say 750 (it's still in ORC A Std). When I'm done editing it, I click off of it and it now reads 750 (in Helvetica).

为什么我不能使用的字体ORC性病我的标签?

Why can't I use the font ORC A Std on my label?

推荐答案

我觉得这是一个错误,它也发生在我身上。我看有关于万吨属性文本和X code和臭虫他们中的一些已经固定在X code 5和iOS7 SDK。可以肯定的,那将被照顾,请报告给苹果公司。

I think this is a bug, it also happens to me. I read there's tons of bugs regarding attributed text and Xcode and some of them are already fixed on Xcode 5 and iOS7 SDK. To be sure that's going to be taken care of, please report it to Apple.

目前编程更改字体,这应该工作。

For now programmatically change the font and that should work.

这篇关于为什么不反映故事板属性,我已经使用属性检查器面板中设置一个UILabel文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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