Attempts to open the resource at the specified URL.
- iOS 2.0–10.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–10.0Deprecated
A URL (Universal Resource Locator). UIKit supports many common schemes, including the
mailtoschemes. You can also employ custom URL schemes associated with apps installed on the device.
true if the resource located by the URL was successfully opened; otherwise
The URL you pass to this method can identify a resource in the app that calls the method, or a resource to be handled by another app. If the resource is to be handled another app, invoking this method might cause the calling app to quit so the other can launch.
To check if there is an installed app that can handle a scheme, call the
can method before calling this one. Be sure to read the description of that method for an important note about registering the schemes you want to employ.