I have a ViewController that looks something like:
import UIKit
import WebKit
class ViewController: UIViewController {
@IBOutlet var webView: WKWebView!
}
In my storyboard I have a WKWebView
as a subview of my main view. I've linked up the IBOutlet but when I run the application I receive:
EXC_BAD_ACCESS (code=1, address=0x431)
What am I doing wrong here and how do I fix it?
WKWebView is not supported on Storyboards. You have to create it by code. The web view element you are using in your Storyboard is a UIWebView.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With