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,里面有一个电话号码。我看到当它检测到它时,它会将它变成标准链接蓝色并加下划线。我只想知道如何以编程方式控制该链接状态。
如果您想阻止 UITextView 将电话号码转换为链接,您可以这样做:
[textView setDataDetectorTypes:UIDataDetectorTypeNone];