{"id":9429,"date":"2015-07-12T16:18:13","date_gmt":"2015-07-12T07:18:13","guid":{"rendered":"http:\/\/www.itblog.jp\/?p=9429"},"modified":"2015-07-12T16:18:13","modified_gmt":"2015-07-12T07:18:13","slug":"xcode%e3%81%a8swift%e3%81%a7%e3%82%a2%e3%83%97%e3%83%aa%e9%96%8b%e7%99%ba1-%e3%83%9c%e3%82%bf%e3%83%b3%e6%8a%bc%e3%81%99%e3%81%a8%e3%83%a9%e3%83%99%e3%83%ab%e3%81%ae%e3%83%86%e3%82%ad%e3%82%b9","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9429","title":{"rendered":"Xcode\u3068Swift\u3067\u30a2\u30d7\u30ea\u958b\u767a1 &#8211; \u30dc\u30bf\u30f3\u62bc\u3059\u3068\u30e9\u30d9\u30eb\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u5207\u308a\u66ff\u308f\u308b\u30a2\u30d7\u30ea"},"content":{"rendered":"<p>Xcode\u3068Swift\u3067\u30a2\u30d7\u30ea\u958b\u767a\u3092\u3059\u308b\u5834\u5408\u306e\u30e1\u30e2\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306bXcode\u3067\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u3068\u3053\u308d\u304b\u3089\u306e\u52c9\u5f37\u3067\u3059\u3002<\/p>\n<h2>\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u30e9\u30d9\u30eb\u3092\u5207\u308a\u66ff\u3048\u308b\u30a2\u30d7\u30ea<\/h2>\n<p>\u753b\u9762\u306e\u4e2d\u592e\u306b\u30c6\u30ad\u30b9\u30c8\u304c\u3042\u3063\u3066\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u30e9\u30d9\u30eb\u306e\u8868\u793a\u5185\u5bb9\u3092\u5207\u308a\u66ff\u3048\u308b\u30a2\u30d7\u30ea\u3067\u3059\u3002<\/p>\n<h3>Xcode\u3067\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210<\/h3>\n<p>Xcode\u3067\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u300cSingle View Application\u300d\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u5de6\u5074\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u304b\u3089\u300cMain.storyboard\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u8868\u793a\u3055\u308c\u308b\u6b63\u65b9\u5f62\u306e\u753b\u9762\u304c\u3001\u5b9f\u969b\u306b\u8868\u793a\u3055\u308c\u308b\u753b\u9762\u306e\u30e2\u30c7\u30eb\u3067\u3059\u3002<br \/>\n\u3053\u3053\u306b\u8272\u3005\u306a\u30d1\u30fc\u30c4\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u53f3\u4e0b\u306b\u3042\u308b\u30d1\u30fc\u30c4\u306e\u4e2d\u304b\u3089\u300cLabel\u300d\u3092\u9078\u629e\u3057\u3066\u753b\u9762\u306b\u30c9\u30e9\u30c3\u30b0&#038;\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b\u300cbutton\u300d\u3092\u9078\u629e\u3057\u3066\u753b\u9762\u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<br \/>\n\u8868\u793a\u4f4d\u7f6e\u3092\u8abf\u6574\u3059\u308b\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u300cView Controller.swift\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c\u3001\u30b3\u30fc\u30c9\u306e\u90e8\u5206\u3067\u3059\u3002<br \/>\n\u3053\u3053\u306b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u306b\u5fc5\u8981\u306a\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>Xcode\u3067\u306f\u3001\u3053\u3053\u306b\u76f4\u63a5\u30ac\u30ea\u30ac\u30ea\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u3001\u3053\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u30ca\u30a4\u306b\u5148\u307b\u3069\u306estoryboard\u304b\u3089\u30d1\u30fc\u30c4\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3053\u3068\u3067\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30dc\u30bf\u30f3\u3068\u30e9\u30d9\u30eb\u3068View Controller\u306e\u30bd\u30fc\u30c9\u30b3\u30fc\u30c9\u5185\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u307e\u3059\u3002\u540d\u524d\u306f\u9069\u5f53\u306b\u6c7a\u3081\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u5148\u307b\u3069\u306e\u30dc\u30bf\u30f3\u3068\u30e9\u30d9\u30eb\u3092\u8868\u3059\u5909\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u306b\u30e9\u30d9\u30eb\u306e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>storyboard\u3067\u3001\u30dc\u30bf\u30f3\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300cTouch Down\u300d\u306e\u53f3\u5074\u306b\u3042\u308b\u25ef\u3092\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u307e\u3059\u3002<br \/>\n\u95a2\u6570\u540d\u306f\u9069\u5f53\u306b\u3064\u3051\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\uff08Touch Down\uff09\u6642\u306e\u51e6\u7406\u3092\u3053\u306e\u95a2\u6570\u5185\u306b\u66f8\u304f\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>label.text = &#8220;Hello World&#8221;<\/p>\n<p>\u3053\u308c\u3067\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u306b\u3001\u30e9\u30d9\u30eb\u3092\u300cHello World\u300d\u306b\u5909\u66f4\u3059\u308b\u30a2\u30d7\u30ea\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u304c\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3059\u306e\u3067\u3001\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30e9\u30d9\u30eb\u304c\u300cHello World\u300d\u306b\u5207\u308a\u66ff\u308f\u308c\u3070\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u4eca\u65e5\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p>Xcode\u3067\u306e\u30a2\u30d7\u30ea\u958b\u767a\u306f\u3001\u30d1\u30fc\u30c4\u306e\u753b\u9762\u3078\u306e\u8a2d\u7f6e\u306bStoryboard\u3092\u4f7f\u3046\u3002<br \/>\n\u5b9f\u884c\u51e6\u7406\u306e\u8a18\u8ff0\u306bView Controller\u3092\u4f7f\u3046\u3002<br \/>\nStoryboard\u304b\u3089\u30d1\u30fc\u30c4\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3053\u3068\u3067\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u304c\u6700\u4f4e\u9650\u3067\u6e08\u3080\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xcode\u3068Swift\u3067\u30a2\u30d7\u30ea\u958b\u767a\u3092\u3059\u308b\u5834\u5408\u306e\u30e1\u30e2\u306b\u3064\u3044\u3066\u3067\u3059\u3002 \u5b9f\u969b\u306bXcode\u3067\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u3068\u3053\u308d\u304b\u3089\u306e\u52c9\u5f37\u3067\u3059\u3002 \u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u30e9\u30d9\u30eb\u3092\u5207\u308a\u66ff\u3048\u308b\u30a2\u30d7\u30ea \u753b\u9762\u306e\u4e2d\u592e\u306b\u30c6\u30ad\u30b9\u30c8\u304c\u3042\u3063\u3066\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3053\u3068\u3067\u30e9\u30d9\u30eb [&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-9429","post","type-post","status-publish","format-standard","hentry","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9429","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=9429"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9429\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}