How do I add a UIWebView to my iOS app?

前端 未结 3 1178
旧时难觅i
旧时难觅i 2021-02-05 13:03

I have an app at the moment that when a button is pushed on the first screen does some work and makes a URL, and then does

[[UIApplication sharedApplication] op         


        
3条回答
  •  一向
    一向 (楼主)
    2021-02-05 13:59

    Since this is the top result on Google, if you can use WKWebView instead of UIWebView, you should.

    import WebKit
    
    let webViewConfiguration = WKWebViewConfiguration()
    let webView = WKWebView(frame: CGRect(), configuration: webViewConfiguration)
    

提交回复
热议问题