0
如何使用UITextview
来检测像100,101等紧急电话号码?紧急电话号码检测
链接,PhoneNumber属性在我的storyBoard
中启用。
我也试过下面的代码。
Mytextview.dataDetectorTypes = UIDataDetectorTypeAll;
如何使用UITextview
来检测像100,101等紧急电话号码?紧急电话号码检测
链接,PhoneNumber属性在我的storyBoard
中启用。
我也试过下面的代码。
Mytextview.dataDetectorTypes = UIDataDetectorTypeAll;
试试这个;
self.myTextView.dataDetectorTypes = UIDataDetectorTypeAll;
如果你要检测的电话号码,然后,
TextView的不应该是当你使用dataDetectorTypes
假设编辑,txtView是UITextView
一个对象,那么就喜欢:
textView.editable = NO;
Mytextview.selectable = YES;试试这个 –
我已经设置了这个,但它仍然没有工作。 – Hetal