Instance Method

openURL:

Attempts to open the resource at the specified URL.

Declaration

- (BOOL)openURL:(NSURL *)url;

Parameters

url

A URL (Universal Resource Locator). UIKit supports many common schemes, including the http, https, tel, facetime, and mailto schemes. You can also employ custom URL schemes associated with apps installed on the device.

Return Value

YES if the resource located by the URL was successfully opened; otherwise NO.

Discussion

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 canOpenURL: 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.

See Also

Deprecated Symbols

- setMinimumBackgroundFetchInterval:

Specifies the minimum amount of time that must elapse between background fetch operations.

Deprecated
statusBarOrientationAnimationDuration

The animation duration in seconds for the status bar during a 90 degree orientation change.

Deprecated
UIApplicationDidChangeStatusBarFrameNotification

Posted when the frame of the status bar changes.

Deprecated
UIApplicationDidChangeStatusBarOrientationNotification

Posted when the orientation of the app’s user interface changes.

Deprecated
UIApplicationWillChangeStatusBarOrientationNotification

Posted when the app is about to change the orientation of its interface.

Deprecated
UIApplicationWillChangeStatusBarFrameNotification

Posted when the app is about to change the frame of the status bar.

Deprecated
UIApplicationStatusBarOrientationUserInfoKey

A key whose value is an NSNumber object that encapsulates a UIInterfaceOrientation value indicating the current orientation (see UIInterfaceOrientation). This key is used with UIApplicationDidChangeStatusBarOrientationNotification and UIApplicationWillChangeStatusBarOrientationNotification notifications.

Deprecated
UIApplicationStatusBarFrameUserInfoKey

A key whose value is an NSValue object that encapsulates a CGRect structure expressing the location and size of the new status bar frame. This key is used with UIApplicationDidChangeStatusBarFrameNotification and UIApplicationWillChangeStatusBarFrameNotification notifications.

Deprecated
statusBarFrame

The frame rectangle defining the area of the status bar.

Deprecated
networkActivityIndicatorVisible

A Boolean value that turns an indicator of network activity on or off.

Deprecated
UIMinimumKeepAliveTimeout

The minimum amount of time (measured in seconds) an app may run a critical background task in the background.

Deprecated
- registerUserNotificationSettings:

Registers your preferred options for notifying the user.

Deprecated
currentUserNotificationSettings

Returns the user notification settings for the app.

Deprecated
UIRemoteNotificationType

Constants indicating the types of notifications the app may display to the user.

Deprecated
- scheduleLocalNotification:

Schedules a local notification for delivery at its encapsulated date and time.

Deprecated
- presentLocalNotificationNow:

Presents a local notification immediately.

Deprecated
- cancelLocalNotification:

Cancels the delivery of the specified scheduled local notification.

Deprecated
- cancelAllLocalNotifications

Cancels the delivery of all scheduled local notifications.

Deprecated
scheduledLocalNotifications

All currently scheduled local notifications.

Deprecated
- setNewsstandIconImage:

Sets the icon of a Newsstand app to an image depicting the current issue of a publication.

Deprecated
- setKeepAliveTimeout:handler:

Configures a periodic handler for VoIP apps in older versions of iOS.

Deprecated
- clearKeepAliveTimeout

Removes a previously installed periodic handler block.

Deprecated
- setStatusBarHidden:withAnimation:

Hides or shows the status bar, optionally animating the transition.

Deprecated
statusBarHidden

A Boolean value that determines whether the status bar is hidden.

Deprecated
- setStatusBarStyle:animated:

Sets the style of the status bar, optionally animating the transition to the new style.

Deprecated
statusBarStyle

The current style of the status bar.

Deprecated
- setStatusBarOrientation:animated:

Sets the app's status bar to the specified orientation, optionally animating the transition.

Deprecated
statusBarOrientation

The current orientation of the app's status bar.

Deprecated
- registerForRemoteNotificationTypes:

Register to receive remote notifications of the specified types via Apple Push Notification service.

Deprecated
- enabledRemoteNotificationTypes

Returns the types of notifications the app accepts.

Deprecated
proximitySensingEnabled

A Boolean value that determines whether proximity sensing is enabled.

Deprecated
- setStatusBarHidden:animated:

Hides or shows the status bar, optionally animating the transition.

Deprecated