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.
More Related Contents:
- ITMS-90809: Deprecated API Usage — Apple will stop accepting submissions of apps that use UIWebView APIs
- How to delete WKWebview cookies
- Can I set the cookies to be used by a WKWebView?
- How to get a user’s time zone?
- How to Completely Uninstall Xcode and Clear All Settings
- Getting all cookies from WKWebView
- Xcode 9 GM – WKWebView NSCoding support was broken in previous versions
- Insert CSS into loaded HTML in UIWebView / WKWebView
- ld: library not found for -lstdc++.6
- Xcode quits unexpectedly every time I open my project
- How to I import 3rd party frameworks into Xcode Playground?
- How does Xcode find implicit target dependencies?
- Using custom fonts in WKWebView
- Xcode: Could not inspect the application package
- Suppressing deprecated warnings in Xcode
- Migrating from UIWebView to WKWebView
- ITMS-90809: Deprecated API Usage – existing app that use UIWebView are no longer accepted
- What #defines are set up by Xcode when compiling for iPhone
- UITableView example for Swift
- How to get my IP address programmatically on iOS/macOS?
- Cocoapods Warning – CocoaPods did not set the base configuration of your project because because your project already has a custom config set
- How can I use IBOutletCollection to connect multiple UIImageViews to the same outlet?
- How to delete all cookies of UIWebView?
- iphone: Where the .dSYM file is located in crash report
- How the default keyboard comes up when user taps in UIWebView?
- Xcode – ld: library not found for -lPods
- “Creating an image format with an unknown type is an error” with UIImagePickerController
- Xcode Cannot Run on the Selected Destination
- Adding quartzcore to Xcode 4 for iOS
- iOS Designated Initializers : Using NS_DESIGNATED_INITIALIZER