简体   繁体   中英

How to use UIWebView that supports IPv6?

I have an app that shows a content using UIWebView . Apple rejects the app, because it doesn't support IPv6 network. Do you have any idea how to fix that? I have to import some libraries or do something else?

I am not using IP address for the URL, but it's domain name, for example:

https://asd.com

UIWebView没有拒绝的理由,原因是你的链接,或者您的服务器不支持IPv6,首先测试,如果你的链接只支持IPv6从这个链接,苹果的意思是你可以做 ,如果你不是因为如何配置你的服务器这个测试搜索通过支持IPV6,希望对您有所帮助

If your application is targeting above iOS 8, try using WebKit instead of UIWebView.

Refer to the following link which clarifies the text below it:

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebView_Class/

Note: "In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView. Additionally, consider setting the WKPreferences property javaScriptEnabled to false if you render files that are not supposed to run JavaScript."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM