如何使用UITextview侦测紧急电话号码,例如100、101等
链接,在my storyBoard中启用了PhoneNumber属性。
我还尝试了下面的代码。
Mytextview.dataDetectorTypes = UIDataDetectorTypeAll;发布于 2016-05-30 20:48:08
试试这个;
self.myTextView.dataDetectorTypes = UIDataDetectorTypeAll;如果你想检测电话号码,
使用dataDetectorTypes时,文本视图不应该是可编辑的
假设txtView是UITextView的一个对象,那么如下所示:
textView.editable = NO;https://stackoverflow.com/questions/37523573
复制相似问题