不需要 xcode 故事板中的大写标签 [英] uppercase label in xcode storyboard not wanted

查看:29
本文介绍了不需要 xcode 故事板中的大写标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 xcode 6 和 storyboard 进行 ios 应用程序开发.

I'm using xcode 6 with storyboard for ios app development.

我在情节提要中的视图控制器中遇到 UILabel 问题:文本简单且小写,但是当我在模拟器或设备中运行应用程序时,我看到大写的标签文本.

I have a problem with UILabel in view controllers in storyboard: the text is simple and inlower case, but when I run the app in the simulator or in the device I see the Label text in UPPERCASE.

标签没有出口,不能以编程方式修改.有人有解决方案吗?我宁愿不使用 IBOutlet 并通过代码设置文本..

Labels have no outlets, and cannot be modified programmatically. some one has a solution? I'd prefer not using IBOutlet and setting text by code..

推荐答案

我遇到了一些类似的问题.就我而言,所有内容(标题、标签、按钮文本等)都是大写的.我发现本地化调试"已打开,因此当我在 iphone 上使用本地化不支持的语言时,它会自动将单词转换为大写.当我禁用它时,一切又正常了.

I had somewhat similar problem. In my case everything(title, lables, button texts, etc.) was in upper case. I found out that "Localization Debugging" was on, so when I had language on iphone which was not supported by localization, it turned words automatically to upper case. When I disabled it, everything worked fine again.

只需转到产品>方案>编辑方案",然后选择运行"并禁用本地化调试".(对不起,我没有足够的声望来发布图片,否则我会把屏幕放在这里)

Just go to "Product > Scheme > Edit Scheme" and there select "Run" and disable "Localization Debugging". (Sorry, I don't have enough reputation to post images, otherwise I would put here screen)

希望能帮到你

这篇关于不需要 xcode 故事板中的大写标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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