<!--
{
  "availability" : [
    "iOS: 2.0.0 - 12.0.0",
    "iPadOS: 2.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWebView/load(_:mimeType:textEncodingName:baseURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWebView(im)loadData:MIMEType:textEncodingName:baseURL:"
  },
  "title" : "load(_:mimeType:textEncodingName:baseURL:)"
}
-->

# load(_:mimeType:textEncodingName:baseURL:)

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

```
func load(_ data: Data, mimeType MIMEType: String, textEncodingName: String, baseURL: URL)
```

## Parameters

`data`

The content for the main page.

`MIMEType`

The MIME type of the content.

`textEncodingName`

The IANA encoding name as in `utf-8` or `utf-16`.

`baseURL`

The base URL for the content.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)