Instance Method

loadData:MIMEType:characterEncodingName:baseURL:

Sets the webpage contents and base URL.

Declaration

- (WKNavigation *)loadData:(NSData *)data MIMEType:(NSString *)MIMEType characterEncodingName:(NSString *)characterEncodingName baseURL:(NSURL *)baseURL;

Parameters

data

The data to use as the contents of the webpage.

MIMEType

The MIME type of the data.

characterEncodingName

The data's character encoding name.

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.

- loadHTMLString:baseURL:

Sets the webpage contents and base URL.

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.

- loadFileURL:allowingReadAccessToURL:

Navigates to the requested file URL on the filesystem

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software