最終更新:2020-06-02 (火) 01:30:51 (1386d)
WKWebView
Top / WKWebView
WebKit View
メモ
- Could not instantiate class named WKWebView
- プロジェクト->General->Frameworks,Libraries,and Embedded ContentでWebKit.frameworkを追加
メモ
- iOS 8~
- プロセスごとになってJITコンパイルされるのでUIWebViewより速い
- Starting in iOS 8.0 and OS X 10.10, use WKWebView to add web content to your app. Do not use UIWebView or WebView.
メモ
バージョン別
iOS 10
- iOS 9までWeb SQLは動かないらしい (iOS 10は動くらしい)
- https://github.com/nolanlawson/cordova-plugin-sqlite-2/issues/63
iOS 9
- iOS 9でローカルファイルの読み込みが可能に (iOS 8.0.2?以降でtmpはいけるらしい)
- UserAgent?の変更も用意
- プライベートモードが実装可能に
- https://qiita.com/ShingoFukuyama/items/a9bf7d26f9dd889d3297
iOS 8
- You may be aware that WKWebView on iOS 8 doesn’t allow files to be loaded from the local filesystem.
- This is problematic for standard Cordova apps, because these use file:// URLs to load the app. But because the Meteor integration serves assets from localhost, WKWebView works fine on both iOS 8 and iOS 9.
ブラウザ
- iOS版Google Chrome 48でUIWebViewからWKWebViewに移行 (2016/01/28)
- Firefoxも移行済み