Instance Method

loadHTMLString:baseURL:

Sets the webpage contents and base URL.

Declaration

- (WKNavigation *)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL;

Parameters

string

The string to use as the contents of the webpage.

baseURL

A URL used to resolve relative URLs within the document.

Return Value

A new navigation.

See Also

Loading Content

estimatedProgress

An estimate of what fraction of the current navigation has been loaded.

hasOnlySecureContent

A Boolean value indicating whether all resources on the page have been loaded through securely encrypted connections.

loading

A Boolean value indicating whether the view is currently loading content.

- reload

Reloads the current page.

- reload:

Reloads the current page.

- reloadFromOrigin

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

- reloadFromOrigin:

Reloads the current page, performing end-to-end revalidation using cache-validating conditionals if possible.

- stopLoading

Stops loading all resources on the current page.

- stopLoading:

Stops loading all resources on the current page.

- loadData:MIMEType:characterEncodingName:baseURL:

Sets the webpage contents and base URL.

- loadFileURL:allowingReadAccessToURL:

Navigates to the requested file URL on the filesystem