{"id":1285,"date":"2020-04-18T00:27:51","date_gmt":"2020-04-17T15:27:51","guid":{"rendered":"https:\/\/ts-engine.net\/?p=1285"},"modified":"2020-04-18T00:27:51","modified_gmt":"2020-04-17T15:27:51","slug":"swift-iphone-uiviewcontroller-must-be-used-from-main-thread-only%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e5%87%ba%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ae%e5%af%be%e5%87%a6%e6%b3%95","status":"publish","type":"post","link":"http:\/\/ts-engine.net\/?p=1285","title":{"rendered":"Swift\/iphone UIViewController.*** must be used from main thread only\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>\nSwift\/iphone UIViewController.*** must be used from main thread only\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u89e3\u6c7a\u306b\u56f0\u3063\u305f\u306e\u3067\u3001<br \/>\n\u89e3\u6c7a\u3057\u305f\u65b9\u6cd5\u3092\u4ee5\u4e0b\u306e\u901a\u308a\u307e\u3068\u3081\u308b\u3002\n<\/p>\n<h2>\n\u305d\u3082\u305d\u3082\u975e\u540c\u671f\u30b9\u30ec\u30c3\u30c9\u3067\u51e6\u7406\u3092\u3059\u308b\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u305f\u3002<br \/>\n<\/h2>\n<p><!--more--><!--more--><\/p>\n<p>\n\u3088\u304f\u3042\u308b\u3068\u601d\u3046\u304c\u3001URLSession\u3092\u4f7f\u3046\u5834\u5408\u306f\u975e\u540c\u671f\u30b9\u30ec\u30c3\u30c9\u3067\u51e6\u7406\u3092\u3059\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u308b\u3002\u4e00\u65b9\u3067\u3001web\u304b\u3089URLSession\u3067\u30c7\u30fc\u30bf\u3092\u3068\u3063\u3066\u304d\u3066\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u753b\u9762\u306e\u63cf\u753b\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u4f7f\u3044\u305f\u3044\u30b1\u30fc\u30b9\u304c\u4e00\u822c\u7684\u306b\u3042\u308b\u3068\u601d\u3046\u304c\u3001\u79c1\u3082\u305d\u306e\u30b1\u30fc\u30b9\u3060\u3063\u305f\u3002\n<\/p>\n<h2>Swift\/iphone \u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u3067\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5<\/h2>\n<p>\n\u305d\u306e\u305f\u3081\u3001URLSession\u81ea\u4f53\u306f\u975e\u540c\u671f\u30b9\u30ec\u30c3\u30c9\u3067\u8a18\u8f09\u3059\u308b\u304c\u3001\u6700\u7d42\u7684\u306b\u753b\u9762\u306e\u63cf\u753b\u3092\u884c\u3044\u305f\u3044\u51e6\u7406\u3092\u4ee5\u4e0b\u306e\u30d6\u30ed\u30c3\u30af\u3067\u56f2\u3080\u3053\u3068\u3067\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u3067\u884c\u3046\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u30a8\u30e9\u30fc\u304c\u56de\u907f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\n<\/p>\n<p>[java]<br \/>\nDispatchQueue.main.async {<br \/>\n\/\/\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u51e6\u7406<br \/>\n}<\/p>\n<p>[\/java]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Swift\/iphone UIViewController.*** must be used from main thread only\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u89e3\u6c7a\u306b\u56f0\u3063\u305f\u306e\u3067\u3001 \u89e3\u6c7a\u3057\u305f\u65b9\u6cd5\u3092\u4ee5\u4e0b\u306e\u901a\u308a\u307e\u3068\u3081\u308b\u3002 \u305d\u3082\u305d\u3082\u975e\u540c\u671f\u30b9\u30ec\u30c3\u30c9\u3067\u51e6\u7406\u3092\u3059\u308b\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,7],"tags":[],"class_list":["post-1285","post","type-post","status-publish","format-standard","hentry","category-20","category-7"],"_links":{"self":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts\/1285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1285"}],"version-history":[{"count":0,"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts\/1285\/revisions"}],"wp:attachment":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}