还在info.plist中配置。除了配置允许上网的配置之外,还有另一项。

iOS使用webView 加载网页,在模拟器中没有问题,而真机却白屏了。App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist f-LMLPHP

第一项:配置允许上网。

第二项:解决白屏问题。

打印提示:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

05-02 02:58