Asks the delegate if the specified text view should allow user interaction with the given URL in the given range of text.
- iOS 7.0–10.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–10.0Deprecated
The text view containing the text attachment.
The URL to be processed.
The character range containing the URL.
true if interaction with the URL should be allowed;
false if interaction should not be allowed.
The text view calls this method if the user taps or long-presses the URL link. Implementation of this method is optional. By default, the text view opens the application responsible for handling the URL type and passes it the URL. You can use this method to trigger an alternative action, such as displaying the web content at the URL in a web view within the current application.