{"id":348,"date":"2016-10-09T09:13:11","date_gmt":"2016-10-09T00:13:11","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=348"},"modified":"2016-10-09T09:13:11","modified_gmt":"2016-10-09T00:13:11","slug":"swift-%e8%a4%87%e6%95%b0%e3%81%ae%e9%81%b8%e6%8a%9e%e8%82%a2%e3%82%92%e6%8c%81%e3%81%a4alertview%e3%82%92%e5%ae%9f%e8%a3%85","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/swift-%e8%a4%87%e6%95%b0%e3%81%ae%e9%81%b8%e6%8a%9e%e8%82%a2%e3%82%92%e6%8c%81%e3%81%a4alertview%e3%82%92%e5%ae%9f%e8%a3%85\/","title":{"rendered":"[swift] \u8907\u6570\u306e\u9078\u629e\u80a2\u3092\u6301\u3064alertView\u3092\u5b9f\u88c5"},"content":{"rendered":"<h2>\u8907\u6570\u306e\u9078\u629e\u80a2\u3092\u6301\u3064alertView\u3092\u5b9f\u88c5<\/h2>\n<pre>\r\nlet alert = UIAlertController(title:\"Titie?\",\r\n                                  message: \"Message\",\r\n                                  preferredStyle: UIAlertControllerStyle.Alert)\r\n        \r\n        \r\n        let cancelAction:UIAlertAction = UIAlertAction(title: \"Cancel\",\r\n                                                       style: UIAlertActionStyle.Cancel,\r\n                                                       handler:{\r\n                                                        action in\r\n                                                        [\u30ad\u30e3\u30f3\u30bb\u30eb\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304f]\r\n        })\r\n        let OKAction:UIAlertAction = UIAlertAction(title: \"OK\",\r\n                                                   style: UIAlertActionStyle.Default,\r\n                                                   handler:{\r\n                                                    (action:UIAlertAction!) -> Void in\r\n                                                    [\u5b9f\u884c\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304f]\r\n        })\r\n        let OtherAction:UIAlertAction = UIAlertAction(title: \"OK\",\r\n                                                   style: UIAlertActionStyle.Default,\r\n                                                   handler:{\r\n                                                    (action:UIAlertAction!) -> Void in\r\n                                                    [\u5b9f\u884c\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u304f]\r\n        })\r\n        alert.addAction(cancelAction)\r\n        alert.addAction(OKAction)\r\n        alert.addAction(OtherAction)\r\n        self.presentViewController(self.alert, animated: true, completion: nil)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8907\u6570\u306e\u9078\u629e\u80a2\u3092\u6301\u3064alertView\u3092\u5b9f<\/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":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/348"}],"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=348"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/348\/revisions\/349"}],"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=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}