1
WebビューからPHPスクリプトを読み込もうとしていますが、毎回エラーが発生しています。 NSURLSession/NSURLConnection HTTP負荷(kCFStreamErrorDomainSSL、-9814)
は私が間違っているつもりどこに私を助けて
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
に、すでに私のInfo.plistファイルを更新
(kCFStreamErrorDomainSSL、-9814)を失敗しました。ここで
は私が
func webView(webView: UIWebView, shouldStartLoadWithRequest request: NSURLRequest, navigationType: UIWebViewNavigationType) -> Bool {
let str : NSString = request.URL!.absoluteString
let url = NSURL(string: request.URL!.absoluteString)
if (str.rangeOfString("https://testing.com/paymethod2.php").location != NSNotFound)
{
}
else
{
webView.stopLoading()
}
return true
}
func webViewDidFinishLoad(webView: UIWebView) {
let doc = webView.stringByEvaluatingJavaScriptFromString("document.documentElement.outerHTML")
print(doc)
}
おかげ
は、あなたはこれを解決するには助けることができます。 @EricD – user3759616