Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法告诉 UITextView 112 也是一个应该在活动链接上检测到并可以调用的数字?
将通知添加UITextViewTextDidChangeNotification到其中包含文本视图的任何类。然后在方法检查中
UITextViewTextDidChangeNotification
if ([[/*name of textView*/ text] containsString@"112"]) { //do something }