{"id":5732,"date":"2015-12-20T23:22:35","date_gmt":"2015-12-20T14:22:35","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5732"},"modified":"2015-12-20T23:28:28","modified_gmt":"2015-12-20T14:28:28","slug":"ios-%e3%82%a2%e3%83%97%e3%83%aa%e9%96%8b%e7%99%ba%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab%e4%b8%ad%e3%81%a7%e3%83%8f%e3%83%9e%e3%82%8b","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5732","title":{"rendered":"[iOS] \u30a2\u30d7\u30ea\u958b\u767a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u4e2d\u2026\u3067\u30cf\u30de\u308b"},"content":{"rendered":"<p><a href=\"https:\/\/developer.apple.com\/library\/ios\/referencelibrary\/GettingStarted\/DevelopiOSAppsSwift\/index.html\">Start Developing iOS Apps (Swift)<\/a> \u3092\u898b\u306a\u304c\u3089\u30c1\u30d3\u30c1\u30d3\u9032\u3081\u3066\u3044\u307e\u3059\u3002Swift \u306f\u672b\u5c3e\u306b\u30bb\u30df\u30b3\u30ed\u30f3\u3092\u66f8\u304b\u306a\u3044\u8a00\u8a9e\u306a\u306e\u3067\u6163\u308c\u307e\u305b\u3093\u3002\u66f8\u3044\u3066\u3082\u3044\u3044\u307f\u305f\u3044\u3067\u3059\u3051\u3069\u3002<\/p>\n<p>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u9032\u3081\u3066\u3044\u304f\u3068\u3001\u30d3\u30e5\u30fc\u306b\u914d\u7f6e\u3057\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u300cControl-drag\u300d\u3057\u3066\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e0a\u306b\u30c9\u30ed\u30c3\u30d7\u3001\u3068\u3044\u3046\u64cd\u4f5c\u304c\u51fa\u3066\u304d\u3066\u3001\u3053\u308c\u304c VNC \u7d4c\u7531\u3067\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u30e2\u30cb\u30bf\u3092\u7e4b\u3044\u3067\u5165\u529b\u3092\u5207\u308a\u66ff\u3048\u3066\u3001\u3068\u3068\u3066\u3082\u9762\u5012\u306a\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u53f3\u30af\u30ea\u30c3\u30af\u3057\u305f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3067\u304d\u308b\u3053\u3068\u306b5\u5206\u307b\u3069\u524d\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3066\u672c\u984c\u3002<a href=\"https:\/\/developer.apple.com\/library\/ios\/referencelibrary\/GettingStarted\/DevelopiOSAppsSwift\/Lesson4.html\">Work with View Controllers<\/a> \u306e\u7bc0\u307e\u3067\u6765\u305f\u3068\u3053\u308d\u3067\u3001\u66f8\u3044\u3066\u3042\u308b\u901a\u308a\u306b\u3084\u3063\u3066\u3082\u30bf\u30c3\u30d7\u30b8\u30a7\u30b9\u30c1\u30e3\u30fc\u304c\u901a\u77e5\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u306b\u906d\u9047\u3057\u307e\u3057\u305f\u3002\u8a66\u3057\u306b\u30b9\u30c8\u30fc\u30ea\u30fc\u30dc\u30fc\u30c9\u4e0a\u306b UITapGestureRecognizer \u3092\u914d\u7f6e\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30b0\u30b0\u308b\u3068\u30d2\u30c3\u30c8\u3059\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u66f8\u3044\u3066\u307f\u3066\u3082\u3084\u3063\u3071\u308a\u30c0\u30e1\u3067\u3059\u3002<\/p>\n<blockquote>\n<pre>override func viewDidLoad() {\r\n    super.viewDidLoad()\r\n\r\n    let gr = UITapGestureRecognizer(target: self, action: \"tapped:\")\r\n    photoImageView.addGestureRecognizer(gr)\r\n}\r\n\r\nfunc tapped(gestureRecognizer: UITapGestureRecognizer) {\r\n    print(\"tapped\")\r\n    ...\r\n}\r\n<\/pre>\n<\/blockquote>\n<p>\u4f55\u304c\u3042\u304b\u3093\u306e\u3084\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3053\u308c\u3088\u308a\u524d\u306e\u7bc0\u306b\u3042\u308b\u3001\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u305f\u3053\u3068\u3092\u30cf\u30f3\u30c9\u30eb\u3059\u308b\u3068\u304b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u7de8\u96c6\u72b6\u614b\u3092 delegate \u3067\u53d7\u3051\u53d6\u308b\u3068\u304b\u3044\u3046\u3053\u3068\u306f\u554f\u984c\u306a\u304f\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Start Developing iOS Apps (Swift) \u3092\u898b\u306a\u304c\u3089\u30c1\u30d3\u30c1\u30d3\u9032\u3081\u3066\u3044\u307e\u3059\u3002Swift \u306f\u672b\u5c3e\u306b\u30bb\u30df\u30b3\u30ed\u30f3\u3092\u66f8\u304b\u306a\u3044\u8a00\u8a9e\u306a\u306e\u3067\u6163\u308c\u307e\u305b\u3093\u3002\u66f8\u3044\u3066\u3082\u3044\u3044\u307f\u305f\u3044\u3067\u3059\u3051\u3069\u3002 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u9032\u3081\u3066\u3044\u304f\u3068 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-5732","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5732"}],"version-history":[{"count":4,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5732\/revisions"}],"predecessor-version":[{"id":5736,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5732\/revisions\/5736"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5732"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}