WKWebView in Interface Builder

You are correct – it doesn’t seem to work. If you look in the headers, you’ll see:

- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;

which implies that you can’t instantiate one from a nib.

You’ll have to do it by hand in viewDidLoad or loadView.

Leave a Comment