0

I want that when user clicks on certain text,(like call, sms, mail), then corresponding activity should happen ie, when user clicks on call then an action sheet should appear with actions whether you want to save or call etc, similarly for sms and mail.I used textview and gave detection for numbers and email. So for call and mail it is working fine. But how to detect for sms?Because when I give number detection it will automatically show call action sheet ie save or call or cancel.But I want following action sheet, which sms, open, copy, cancel:

Following image

I tried using sms//"91123456", but it is not working. I know I can directly launch message picker but do not want this, I want to show default action sheet.I tried this in html and it is working but I want to do in native.

4

1 回答 1

0

你试过了textView.dataDetectorTypes = UIDataDetectorTypeAll;吗?

有关更多数据检测器类型,请参阅此UIKit 数据类型参考。

于 2013-06-21T08:51:02.840 回答