{"id":4450,"date":"2016-08-18T10:00:19","date_gmt":"2016-08-18T01:00:19","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=4450"},"modified":"2016-08-17T19:02:23","modified_gmt":"2016-08-17T10:02:23","slug":"%e6%96%b0%e4%ba%ba%e5%a5%ae%e9%97%98%e8%a8%989","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/4450","title":{"rendered":"\u65b0\u4eba\u596e\u95d8\u8a189"},"content":{"rendered":"<h3>iOS\u3067\u304a\u5929\u6c17\u30a2\u30d7\u30ea\u958b\u767a<\/h3>\n<p>\u73fe\u5728\u304a\u5929\u6c17\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3057\u3066\u3001<strong>Open Weather Map<\/strong>\u00a0\u3068\u3044\u3046\u304a\u5929\u6c17\u60c5\u5831\u3092API\u3067\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3044\u308bkeny\u3067\u3059\u3002<br \/>\nOpen Weather Map API\u304b\u3089JSON\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3088\u3046\u3068http\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u6642\u306b\u30cf\u30de\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u306e\u3067\u8a18\u3057\u307e\u3059\u3002ATS\u304c\u8981\u56e0\u3067\u3059\u304c&#8230;<\/p>\n<p><!--more--><\/p>\n<p>\u4eca\u56de\u306f\u3001\u304a\u5929\u6c17\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308bOpenWeatherMap\u3068\u3044\u3046API \u304b\u3089\u304a\u5929\u6c17\u60c5\u5831\u3092json\u30c7\u30fc\u30bf\u3067\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001http\u901a\u4fe1\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>URL\u306fhttp:\/\/api~\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>[code]<\/strong><br \/>\n<img loading=\"lazy\" class=\"aligncenter wp-image-4451 size-full\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/08\/funtouki9_1.png\" alt=\"funtouki9_1\" width=\"691\" height=\"233\" \/><\/p>\n<p>\u4e0a\u8a18\u3092\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p>App \u00a0Transport Security has blocked ~\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u529b\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3069\u3046\u3084\u3089\u3001http\u901a\u4fe1\u3092\u30d6\u30ed\u30c3\u30af\u3057\u307e\u3057\u305f~\u3002\u3068\u3044\u3046\u5185\u5bb9\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u203b\u4eca\u56de\u306fATS\u306e\u8a71\u984c\u3067\u3059\u306e\u3067\u300130\u884c\u76ee\u306e\u4f8b\u5916\u51e6\u7406\u306f\u5272\u611b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d50\u8ad6\u7684\u306b\u306f\u3001<strong>Xcode7<\/strong> \u3001<strong>iOS9<\/strong>\u304b\u3089\u30a2\u30d7\u30ea\u304c\u901a\u4fe1\u3092\u7528\u3044\u308b\u5834\u5408\u3001Apple\u304b\u3089https\u901a\u4fe1\u304c\u63a8\u5968\u3055\u308c\u3066\u304a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u306e<strong>ATS<\/strong>(App Transport Security)\u304c\u6709\u52b9\u306e\u305f\u3081\u3001https\u901a\u4fe1\u3057\u304b\u884c\u3046\u4e8b\u304c\u3067\u304d\u306a\u3044\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u4eca\u56de\u306fhttp\u901a\u4fe1\u3092\u7528\u3044\u308b\u306e\u3067\u3001\u3053\u306eATS\u3092\u7121\u52b9\u5316\u3057\u3088\u3046\u3068\u8003\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u56de\u907f\u7b56\u306f[<strong>\u7279\u5b9a\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u307fATS\u3092\u7121\u52b9\u5316\u3059\u308b<\/strong>]\u306a\u3069\u65b9\u6cd5\u306f\u8907\u6570\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u7c21\u5358\u306b\u7121\u52b9\u5316\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u65b9\u6cd5\u3067\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>info.plist\u304b\u3089\u3001App Transport Security Setting\u3068\u3044\u3046Key\u3092\u8ffd\u52a0\u3057Allow Arbitrary Loads\u3092YES\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-4454 size-full\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2016\/08\/funtouki9_2.png\" alt=\"funtouki9_2\" width=\"365\" height=\"38\" \/><\/p>\n<p>\u3053\u308c\u3067\u518d\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3001\u7121\u4e8bhttp\u901a\u4fe1\u304c\u53ef\u80fd\u3068\u306a\u308ajson\u306e\u53d6\u5f97\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u307e\u3068\u3081<\/strong><\/p>\n<hr \/>\n<p>\u4eca\u5f8c\u306fWEB\u30a2\u30d7\u30ea\u306a\u3069\u3001http\u901a\u4fe1\u3092\u7528\u3044\u308b\u5834\u5408ATS\u3092<strong>info.plist<\/strong>\u304b\u3089\u89e3\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n\u307e\u305fATS\u3092\u5fc5\u8981\u4ee5\u4e0a\u306b\u7121\u52b9\u5316\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u306e\u5be9\u67fb\u306b\u3082\u5f71\u97ff\u304c\u3042\u308a\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u9762\u304b\u3089\u3082\u4e0d\u7528\u610f\u306bATS\u3092\u7121\u52b9\u5316\u3057\u306a\u3044\u4e8b\u304c\u5fc5\u8981\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p><em>keny<\/em><\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4450\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/4450\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u65b0\u4eba\u596e\u95d8\u8a189\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4450\" data-text=\"\u65b0\u4eba\u596e\u95d8\u8a189\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4450\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/4450\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>iOS\u3067\u304a\u5929\u6c17\u30a2\u30d7\u30ea\u958b\u767a \u73fe\u5728\u304a\u5929\u6c17\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3057\u3066\u3001Open Weather Map\u00a0\u3068\u3044\u3046\u304a\u5929\u6c17\u60c5\u5831\u3092API\u3067\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3063\u3066\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3044\u308bkeny\u3067\u3059\u3002 Open Weather Map  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,27,11],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/4450"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=4450"}],"version-history":[{"count":16,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/4450\/revisions"}],"predecessor-version":[{"id":4484,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/4450\/revisions\/4484"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=4450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=4450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=4450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}