Is it possible, using Text View's "Detection" for links, to let the user open the URL in an in-app browser, as opposed to switching to Safari? If there's not a setting for that option, how can I add a handler/event for when they tap a link, to open a WebView?
Try overriding textView:shouldInteractWithURL:inRange:
in your UITextViewDelegate, and return NO to avoid forwarding the URL to the OS.
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange
{
// Load your webview
return NO;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With