简体   繁体   English

带有基本SDK iOS 6.1的iOS 6.1中带有属性文本的UITextView不起作用

[英]UITextView with attributed text in iOS 6.1 with base SDK iOS 6.1 doesn't work

My App uses deployment target 5.0, Base SDK 6.1, XCode 5 and runs on a device with iOS 7. I have a UITextView with Attributed text in my Storyboard (edited the attributed text in the Storyboard). 我的应用程序使用部署目标5.0,Base SDK 6.1,XCode 5并在iOS 7设备上运行。我的故事板中有一个带有归属文本的UITextView (编辑了故事板中的属性文本)。

My problem is that I only see the attributed text when I build with base SDK 7.0. 我的问题是,当我使用基础SDK 7.0构建时,我只看到了属性文本。 On 6.1 or 6.0 (in the simulator) I do not see the attributed text, while it should be supported from 6.0+ (before iOS 7 and XCode 5, it worked). 在6.1或6.0(在模拟器中)我没有看到属性文本,而它应该从6.0+支持(在iOS 7和XCode 5之前,它工作)。 I get the warnings on my storyboard (correctly) that "Attributed Text on iOS versions prior to 6.0", but this shouldn't keep iOS 6.0 from displaying Attributed text, right? 我在故事板上(正确地)得到了“6.0以前的iOS版本上的归属文本”的警告,但这不应该让iOS 6.0不显示归属文本,对吧?

Screenshot: 截图: 一些澄清

No, it does not. 不,不是的。 Everything still builds the same its just a new warning that appears in Xcode 5. Presumably the previous compiler in Xcode 4 couldn't or didn't try to detect this issue. 一切仍然构建相同它只是Xcode 5中出现的新警告。据推测,Xcode 4中的先前编译器无法或不尝试检测此问题。

I use Latest iOS (iOS 7.0) for my app's Base SDK with a deployment target of 5.1, and everything builds fine from iOS 5 and up. 我使用Latest iOS (iOS 7.0)作为我的应用程序的Base SDK,部署目标为5.1,所有内容都可以从iOS 5及更高版本构建。

I'm having the same problem. 我遇到了同样的问题。 Probably worth submitting a bug report to Apple. 可能值得向Apple提交错误报告。 I've had a few issues crop up with Xcode 5. As a temporary work around, it does still working as expected if you set it programmatically, but that can be quite a tedious process. 我在Xcode 5中遇到了一些问题。作为临时工作,如果你以编程方式设置它,它仍然按预期工作,但这可能是一个相当繁琐的过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM