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?
Post
Replies
Boosts
Views
Activity
I need to test In-App purchase but when I try to add tester I get an error. When I try second time I get an email marked by red color.