WKWebView in Interface Builder

前端 未结 12 869
南旧
南旧 2020-11-30 01:51

It seems that the IB object templates in XCode 6 beta are still creating old-style objects (UIWebView for iOS and WebView for OSX). Hopefully Apple will update them for the

12条回答
  •  生来不讨喜
    2020-11-30 02:39

    You can instantiate and configure a WKWebView in IB since Xcode 9, no need to do it in code.

    Note that your deployment target has to be higher than iOS 10 though or you will get a compile-time error.

提交回复
热议问题