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
Interaction works with long tap only and I get interaction = UITextItemInteractionPresentActions. Why normal tap does not work?
I have UITextView in UITableViewCell and I need to handle user interaction with links in text using UITextViewDelegate
Code Block - (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?