{"id":738,"date":"2017-01-08T13:31:42","date_gmt":"2017-01-08T04:31:42","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=738"},"modified":"2017-01-08T13:31:42","modified_gmt":"2017-01-08T04:31:42","slug":"swift-nsnotification%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%83%89%e3%83%aa%e3%83%96%e3%83%b3%e3%81%a7%e5%87%a6%e7%90%86%e3%82%92%e9%96%8b%e5%a7%8b","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/swift-nsnotification%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%83%89%e3%83%aa%e3%83%96%e3%83%b3%e3%81%a7%e5%87%a6%e7%90%86%e3%82%92%e9%96%8b%e5%a7%8b\/","title":{"rendered":"[swift] NSNotification\u3092\u5229\u7528\u3057\u3066\u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u3067\u51e6\u7406\u3092\u958b\u59cb\u3059\u308b"},"content":{"rendered":"<h2>NSNotification\u3092\u5229\u7528\u3057\u3066\u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u3067\u51e6\u7406\u3092\u958b\u59cb\u3059\u308b<\/h2>\n<p>\u3042\u308b\u51e6\u7406\u304c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u8d70\u3063\u3066\u3044\u3066\u3001\u305d\u306e\u51e6\u7406\u304c\u7d42\u4e86\u3057\u305f\u3089\u6b21\u306e\u51e6\u7406\u3092\u884c\u3046\u306a\u3069<br \/>\nNSNotification\u3092\u5229\u7528\u3057\u3066\u30a4\u30d9\u30f3\u30c8\u30c9\u30ea\u30d6\u30f3\u3067\u51e6\u7406\u3092\u958b\u59cb\u3057\u305f\u3044\u6642\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3059\u308b<\/p>\n<p>Notification\u9001\u4fe1\u5074<\/p>\n<pre>\r\nlet str = \"eventCompleted\"\r\nlet n : NSNotification = NSNotification(name: str, object: self)\r\nNSNotificationCenter.defaultCenter().postNotification(n)\r\n<\/pre>\n<p>Notification\u53d7\u4fe1\u5074<\/p>\n<pre>\r\noverride func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(self._recieveComplete), name: \"eventCompleted\", object: nil)\r\n}\r\n\r\nfunc _recieveComplete(){\r\n        \/\/\u901a\u77e5\u53d7\u4fe1\u6642\u306e\u51e6\u7406\u3092\u66f8\u304f\r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NSNotification\u3092\u5229\u7528\u3057\u3066\u30a4<\/p>\n","protected":false},"author":1,"featured_media":88,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[77],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/738"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=738"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/738\/revisions"}],"predecessor-version":[{"id":739,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/738\/revisions\/739"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/88"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}