{"id":8523,"date":"2020-11-27T12:25:53","date_gmt":"2020-11-27T03:25:53","guid":{"rendered":"https:\/\/www.gesource.jp\/weblog\/?p=8523"},"modified":"2020-11-26T21:27:51","modified_gmt":"2020-11-26T12:27:51","slug":"%e8%87%aa%e5%b7%b1%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%abwkwebview%e3%81%a7%e3%82%a2%e3%82%af","status":"publish","type":"post","link":"https:\/\/www.gesource.jp\/weblog\/?p=8523","title":{"rendered":"\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306bWKWebView\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b"},"content":{"rendered":"<p>\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306bWKWebView\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001<\/p>\n<blockquote><p>\n  Would you like to connect to the server anyway?<br \/>\n  The certificate for this server is invalid.\n<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3001\u30ed\u30b0\u306b\u306f<\/p>\n<blockquote><p>\n  WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = NSURLErrorDomain, code = -1202\n<\/p><\/blockquote>\n<p>\u3068\u51fa\u529b\u3055\u308c\u305f\u3002<\/p>\n<p>\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306bWKWebView\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<pre><code>WKWebView* webView = [[WKWebView alloc] initWithFrame:bounds configuration:webConfig];\nwebView.navigationDelegate = self;\n\n- (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler\n{\n    NSURLCredential* credential = [[NSURLCredential alloc] initWithTrust:[challenge protectionSpace].serverTrust];\n    completionHandler(NSURLSessionAuthChallengeUseCredential, credential);\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306bWKWebView\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001 Would you like to connect to the server anyway? The certificate for this  &#8230;<\/p>\n<p><a href=\"https:\/\/www.gesource.jp\/weblog\/?p=8523\" class=\"more-link\">Continue reading &lsquo;\u81ea\u5df1\u8a3c\u660e\u66f8\u3092\u4f7f\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306bWKWebView\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[24],"tags":[131,188,179],"class_list":["post-8523","post","type-post","status-publish","format-standard","hentry","category-programming","tag-ios","tag-objctive-c","tag-xcode"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/8523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8523"}],"version-history":[{"count":0,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/8523\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}