Post

Replies

Boosts

Views

Activity

UITextView and hyper link
I'm testing and app on iOS 14. I have UITextView in UITableViewCell and I need to handle user interaction with links in text using UITextViewDelegate (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange interaction:(UITextItemInteraction)interaction {     switch (interaction) {         case UITextItemInteractionInvokeDefaultAction:             NSLog(@"interaction = DefaultAction");             break;         case UITextItemInteractionPresentActions:             NSLog(@"interaction = PresentActions");             break;         case UITextItemInteractionPreview:             NSLog(@"interaction = Preview");             break;         default:             break;     }     return YES; } Interaction works with long tap only and I get interaction = UITextItemInteractionPresentActions. Why normal tap does not work?
0
0
424
Dec ’20