当文本视图可编辑时,iphone UITextView不支持数据检测器 [英] iphone UITextView does not support data detectors when the text view is editable

查看:116
本文介绍了当文本视图可编辑时,iphone UITextView不支持数据检测器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建时收到一个有趣的警告(iPhone模拟器),它提供以下内容:

I am getting an interesting warning at build time (iPhone simulator) that gives the following:

EditView.xib:35:0 UITextView does not support data detectors when the text view is editable.

谷歌基本上不存在,我想删除它。

This is basically non existent on google and I would like to remove it.

我的editview.xib有一个textview,我在其中写下注释。还有更多需要的信息吗?

My editview.xib has a textview where I write notes into it. Is there any more info that is needed?

推荐答案

我也看到了这个警告。以下是我修复它的方法:

I was seeing this warning as well. Here's how I fixed it:

在Interface Builder的xib文件中,选择文本视图,然后打开属性检查器。确保检测电话号码和检测链接都是未检查的。

In the xib file in Interface Builder, select your text view, and bring up the attributes inspector. Make sure that "Detects Phone numbers" and "Detects Links" are both UNCHECKED.

我检查了检测链接,结果发现导致警告的原因。基本上,如果textview是可编辑的,则不希望打开这些自动检测功能。

I had "Detects Links" checked, and turns out that's what was causing the warning. Basically, if the textview is editable, you don't want these auto-detect features turned on.

这篇关于当文本视图可编辑时,iphone UITextView不支持数据检测器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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