Instance Method

loadAlternateHTMLString:baseURL:forUnreachableURL:

Loads alternate content for a frame whose URL is unreachable.

Declaration

- (void)loadAlternateHTMLString:(NSString *)string baseURL:(NSURL *)baseURL forUnreachableURL:(NSURL *)unreachableURL;

Parameters

string

The string to use as the main page for the document.

URL

A file that is used to resolve relative URLs within the document.

unreachableURL

The URL for the alternate page content.

Discussion

Use this method to display page-level loading errors in a web view. Typically, a WebFrameLoadDelegate or WebPolicyDelegate object invokes this method from these methods: webView:didFailProvisionalLoadWithError:forFrame: (WebFrameLoadDelegate), webView:decidePolicyForMIMEType:request:frame:decisionListener: (WebPolicyDelegate), or webView:unableToImplementPolicyWithError:frame: (WebPolicyDelegate). If invoked from one of these methods, the back-forward list is maintained.

See Also

Loading Content

- loadRequest:

Connects to a given URL by initiating an asynchronous client request.

Deprecated
- reload

Reloads the initial request passed as an argument to loadRequest:.

Deprecated
- reloadFromOrigin

Performs an end-to-end revalidation using cache-validating conditionals if possible.

Deprecated
- stopLoading

Stops any pending loads on the receiver’s data source, and those of its children.

Deprecated
- loadHTMLString:baseURL:

Sets the main page contents and base URL.

Deprecated
- loadData:MIMEType:textEncodingName:baseURL:

Sets the main page contents, MIME type, content encoding, and base URL.

Deprecated
- loadArchive:

Loads an archive into the web frame.

Deprecated