App was rejected from App Store because of UIWebview

后端 未结 5 753
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 17:11

This is the message I got from them:

We found that the experience your app provides is not sufficiently different from a web browsing experience, as

5条回答
  •  醉酒成梦
    2020-12-02 17:47

    just change it with WKWebView and it will be accepted cause its a new guidelines imposed by apple recently

    import WebKit
    
    
    var webView: WKWebView!
    
    override func loadView() {
        let webConfiguration = WKWebViewConfiguration()
        webView = WKWebView(frame: .zero, configuration: webConfiguration)
        webView.uiDelegate = self
        view = webView
    }
    override func viewDidLoad() {
        super.viewDidLoad()
    
        let myURL = URL(string:"https://www.apple.com")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
    }
    

提交回复
热议问题