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

后端 未结 6 1601
爱一瞬间的悲伤
爱一瞬间的悲伤 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 01:52

    So Wordy!

    textView.editable = NO;
    textView.dataDetectorTypes = UIDataDetectorTypeAll;
    

    the URL address must start with "http://", otherwise the textview cannot detect it.

提交回复
热议问题