{"id":20232,"date":"2014-06-07T14:52:16","date_gmt":"2014-06-07T05:52:16","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=20232"},"modified":"2014-06-07T14:52:16","modified_gmt":"2014-06-07T05:52:16","slug":"swift-cheat-sheet","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/swift-cheat-sheet\/","title":{"rendered":"Swift\u8a00\u8a9e\u304c\u3088\u304f\u5206\u304b\u308b\u300cSwift Cheat Sheet\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/06\/blogSwift-Cheat-Sheet.jpg\" alt=\"Swift Cheat Sheet\" title=\"Swift Cheat Sheet.jpg\" border=\"0\" width=\"546\" height=\"339\" \/><\/p>\n<p>Apple\u306e\u65b0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cSwift\u300d\u306b\u95a2\u3059\u308b\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8(\u864e\u306e\u5dfb)\u30b5\u30a4\u30c8\u300c<a href=\"http:\/\/kpbp.github.io\/swiftcheatsheet\/\">Swift Cheat Sheet<\/a>\u300d\u304c\u767b\u5834\u3057\u3066\u3044\u307e\u3059\u3002String\u3001Array\u3001Dictionary\u3001\u5236\u5fa1\u69cb\u9020(if\/\u30eb\u30fc\u30d7)\u306a\u3069\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u57fa\u790e\u7684\u306a\u6a5f\u80fd\u3092\u7d39\u4ecb\u3059\u308b\u30ac\u30a4\u30c9\u306a\u306e\u3067\u5165\u9580\u6642\u306b\u306f\u5f79\u306b\u7acb\u3064\u3053\u3068\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u5909\u6570\u306b\u95a2\u3059\u308b\u8aac\u660e\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<p><span class=\"mybold\">Variables<\/span><\/p>\n<pre>\nvar myInt = 1\nvar myExplicitInt: Int = 1 \/\/ explicit type\nvar x = 1, y = 2, z = 3 \/\/ declare multiple integers\nmyExplicitInt = 2 \/\/ set to another integer value\n<\/pre>\n<p>\u300c<a href=\"https:\/\/softantenna.com\/blog\/mac\/swift-matome\/\">\u30e9\u30a4\u30d0\u30eb\u306b\u5dee\u3092\u3064\u3051\u308b\u305f\u3081\u306e\u300cSwift\u300d\u60c5\u5831\u7dcf\u307e\u3068\u3081<\/a>\u300d\u306b\u968f\u6642Swift\u60c5\u5831\u3092\u307e\u3068\u3081\u3066\u3044\u304f\u3064\u3082\u308a\u306a\u306e\u3067\u3053\u3061\u3089\u3082\u3088\u308d\u3057\u304f\u304a\u306d\u304c\u3044\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple\u306e\u65b0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cSwift\u300d\u306b\u95a2\u3059\u308b\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8(\u864e\u306e\u5dfb)\u30b5\u30a4\u30c8\u300cSwift Cheat Sheet\u300d\u304c\u767b\u5834\u3057\u3066\u3044\u307e\u3059\u3002String\u3001Array\u3001Dictionary\u3001\u5236\u5fa1\u69cb\u9020(if\/\u30eb\u30fc\u30d7)\u306a\u3069\u30d7\u30ed\u30b0 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":20231,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[4,75],"tags":[2420],"class_list":["post-20232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac","category-software","tag-swift"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/20232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=20232"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/20232\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/20231"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=20232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=20232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=20232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}