{"id":9425,"date":"2015-07-09T15:43:24","date_gmt":"2015-07-09T06:43:24","guid":{"rendered":"http:\/\/www.itblog.jp\/?p=9425"},"modified":"2015-07-10T11:43:11","modified_gmt":"2015-07-10T02:43:11","slug":"swift%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e3%81%ae%e5%8b%89%e5%bc%b7%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9425","title":{"rendered":"Swift\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u30e1\u30e2"},"content":{"rendered":"<p>iOS\u30a2\u30d7\u30ea\u958b\u767a\u8a00\u8a9e\u300cSwift\u300d\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u30e1\u30e2\u5834\u6240\u3067\u3059\u3002<\/p>\n<h2>Swift\u306e\u7279\u5fb4<\/h2>\n<h3>\u9ad8\u901f<\/h3>\n<p>Swift\u306f\u300c\u901f\u3044\u300d\u3068\u3044\u3046\u610f\u5473\u3002\u6700\u901f\u306e\u8a00\u8a9e\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001Object-C\u3084Pyton\u3088\u308a\u901f\u3044\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<p><3>\u30e2\u30c0\u30f3<\/h3>\n<p>\u69d8\u3005\u306a\u8a00\u8a9e\u306e\u65b0\u3057\u3044\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068<br \/>\n\u4f8b\uff1a\u8907\u6570\u306e\u623b\u308a\u5024\u3001\u30af\u30ed\u30fc\u30b8\u30e3\u3001\u30b8\u30a7\u30cd\u30ea\u30af\u30b9\u3001\u30bf\u30a4\u30d7\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3001\u540d\u524d\u7a7a\u9593\u306a\u3069<\/p>\n<h3>\u5b89\u5168<\/h3>\n<p>\u30e1\u30e2\u30ea\u7ba1\u7406\u3084\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u304c\u81ea\u52d5\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u308b\u306a\u3069<\/p>\n<h3>\u958b\u767a\u3057\u3084\u3059\u3044<\/h3>\n<p>\u30e2\u30c0\u30f3\u306a\u8981\u7d20\u3092\u53d6\u308a\u5165\u308c\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u591a\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30de\u304b\u3089\u3059\u308b\u3068Object-C\u306b\u6bd4\u3079\u3066\u958b\u767a\u304c\u3057\u3084\u3059\u3044\u3068\u3044\u3046\u8a71\u3067\u3059\u3002<br \/>\nplayground\u3068\u3044\u3046\u6a5f\u80fd\u3092\u4f7f\u3048\u3070\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u524d\u306b\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u5b9f\u884c\u7d50\u679c\u3092\u76f4\u3050\u306b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Object-C\u3068\u5171\u5b58\u3067\u304d\u308b<\/h3>\n<p>Object-C\u3068\u5171\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u3067\u5834\u5408\u306b\u3088\u3063\u3066\u4f7f\u3044\u5206\u3051\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>var<\/h2>\n<p>\u5909\u6570\u3092\u683c\u7d0d\u3059\u308b\u5834\u6240\u306e\u610f\u5473<\/p>\n<p>var x = 2<\/p>\n<p>\u5909\u6570\u306e\u5024\u306f\u5f8c\u304b\u3089\u5909\u66f4\u3067\u304d\u308b<\/p>\n<h2>let<\/h2>\n<p>\u5b9a\u6570\u3092\u683c\u7d0d\u3059\u308b\u5834\u6240\u306e\u610f\u5473<\/p>\n<p>let y = 3<\/p>\n<p>\u5b9a\u6570\u306e\u5024\u306f\u4e00\u65e6\u683c\u7d0d\u3059\u308b\u3068\u5909\u66f4\u4e0d\u53ef\u80fd<\/p>\n<h2>\u6587\u5b57\u5217<\/h2>\n<p>&#8220;&#8221;\u3000\u30c0\u30d6\u30eb\u30af\u30aa\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3080\u3068\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u308f\u308c\u308b<\/p>\n<p>let x = &#8220;aaaaa&#8221;<br \/>\nlet y = &#8220;bbbbb&#8221;<br \/>\nlet z = x + y<\/p>\n<h2>for\u6587<\/h2>\n<p>for i in 1&#8230;50 {<br \/>\n\u3000\u51e6\u7406<br \/>\n}<\/p>\n<p>i\u304c1\u301c50\u307e\u3067\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3055\u305b\u3066\u51e6\u7406\u3092\u30eb\u30fc\u30d7\u3055\u305b\u308b<\/p>\n<h2>\u753b\u9762\u51fa\u529b<\/h2>\n<p>println\u3000\u3067\u753b\u9762\u306b\u60c5\u5831\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>println(&#8220;Hello World&#8221;);<\/p>\n<h2>\u660e\u793a\u7684\u306b\u578b\u3092\u6307\u5b9a<\/h2>\n<p>\u578b\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iOS\u30a2\u30d7\u30ea\u958b\u767a\u8a00\u8a9e\u300cSwift\u300d\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u30e1\u30e2\u5834\u6240\u3067\u3059\u3002 Swift\u306e\u7279\u5fb4 \u9ad8\u901f Swift\u306f\u300c\u901f\u3044\u300d\u3068\u3044\u3046\u610f\u5473\u3002\u6700\u901f\u306e\u8a00\u8a9e\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001Object-C\u3084Pyton\u3088\u308a\u901f\u3044\u3089\u3057\u3044\u3067\u3059\u3002 \u30e2\u30c0\u30f3 \u69d8\u3005\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"class_list":["post-9425","post","type-post","status-publish","format-standard","hentry","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9425"}],"version-history":[{"count":1,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9425\/revisions"}],"predecessor-version":[{"id":9426,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9425\/revisions\/9426"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}