Add tap event to IOS NSMutableAttributedString
问题 I have an NSMutableAttributedString such as "Bob liked your picture". I'm wondering if I can add two different tap events to "Bob" and "picture". Ideally, tapping "Bob" would present a new view controller with Bob's profile and tapping "picture" would present a new view controller with the picture. Can I do this with NSMutableAttributedString? 回答1: The way I would handle it is using a standard NSString in a UITextView . Then taking advantage of the UITextInput protocol method