UITextField -webView不再受支持 [英] UITextField -webView no longer supported
问题描述
当使用一些文本字段时,我得到以下调试输出。
I get the below debug output when working with some text fields.
UITextField -webView被调用。新文本架构不再支持此方法
UITextField -webView called. This method is no longer supported with the new text architecture
有人可以解释为什么会出现这种情况吗?
Can someone explain why this is appearing?
我目前使用iOS 7运行XCode 5
I am currently running XCode 5 with iOS 7
推荐答案
在iOS 7之前的iOS版本中,所有UITextField和UITextViews有底层UIWebView来显示格式化的文本。从iOS 7开始格式的文本是使用TextKit框架绘制的,所以-webView属性变得不推荐使用。
In previous iOS versions before iOS 7 all UITextFields and UITextViews had underlying UIWebView to show formatted text. Starting from iOS 7 formatted text is drawn using TextKit framework, so -webView property become deprecated.
看起来Apple框架仍然调用 webView
方法。
It seems Apple frameworks still call the webView
method internally.
这篇关于UITextField -webView不再受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!