iphone UITextView does not support data detectors when the text view is editable

后端 未结 6 1600
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-16 01:18

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 w         


        
6条回答
  •  醉话见心
    2020-12-16 02:07

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

    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.

    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.

提交回复
热议问题