84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
UITableViewCell中UITextView聊天文本需要识别URL、number,但是需要禁用UITextView的selectable,以处理聊天气泡的长按事件,但是禁用selectable后,UITextView中的URL、PhoneNumber就不能点击了,这真是个棘手的问题。
我想要实现的是,UITextView中的URL、PhoneNumber既可以点击,又不影响UIImageView气泡的长按事件。
请问童鞋们有没有什么思路或解决办法?
业精于勤,荒于嬉;行成于思,毁于随。
You can choose to use rich text to achieve these functions
For example, in YYText, the text that has been sent does not need to be edited, so there is no need to use TextView.
You can choose to use rich text to achieve these functions
For example, in YYText, the text that has been sent does not need to be edited, so there is no need to use TextView.