I need to implement the WKWebview for my ios app with Xcode. However i have error when using it "undeclared type 'WKWebview'". Do i missing anything important.
I'm using the latest Xcode7 download from App Store.
I need to implement the WKWebview for my ios app with Xcode. However i have error when using it "undeclared type 'WKWebview'". Do i missing anything important.
I'm using the latest Xcode7 download from App Store.
If you are using swift, first import the WebKit module in any files you're using web kit API:
import WebKit
Then you can use the web view:
let webView = WKWebView()
You should import the header #import <WebKit/WebKit.h>
and add WebKit.framework
in Build Phases if you're using objective-c.
Swift 5:
import WebKit
And add WebKit.framework
in Frameworks section under General project settings