How to Migrate to WKWebView?

后端 未结 9 1436
后悔当初
后悔当初 2020-11-30 22:23

I\'m trying to understand how to make use of the new WKWebView in iOS8, can\'t find much information. I\'ve read:

http://developer.telerik.com/featured/why-ios-8s-wk

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 22:51

    You have to use WKWebView, which is available as of iOS8 in Framework 'WebKit' to get the speedup. If you need backwards compatibility, you have to use UIWebView for iOS7 and older.

    I set up a little code to provide the UIViewController frame for the new WKWebView. It can be installed via cocoapods. Have a look here:

    STKWebKitViewController on github

提交回复
热议问题