WKWebView in Interface Builder

前端 未结 12 872
南旧
南旧 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 02:35

    If you still face this issue in recent versions of Xcode, i.e. v9.2+, simply import Webkit to your ViewController:

    #import 
    
    1. Before the fix:

    2. After the fix:

提交回复
热议问题