{"id":67,"date":"2021-09-17T15:23:55","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/swift.tecc0.com\/?p=67"},"modified":"2021-09-17T15:23:55","modified_gmt":"1970-01-01T00:00:00","slug":"post-67","status":"publish","type":"post","link":"https:\/\/swift.tecc0.com\/?p=67","title":{"rendered":"\u5bfe\u51e6\u6cd5: Swift 2.0 &#8211; Binary Operator \u201c|\u201d cannot be applied to two UIUserNotificationType operands"},"content":{"rendered":"<p>Swift\u3092\u4e45\u3057\u3076\u308a\u306b\u518d\u958b\u3057\u3066\u307f\u3066\u3001Local Notification\u3092\u5b9f\u88c5\u3057\u3088\u3046\u3068\u3057\u3066\u51fa\u305f\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u3002<\/p>\n<p><strong>Swift 2.0 &#8211; Binary Operator \u201c|\u201d cannot be applied to two UIUserNotificationType operands<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>\u8a02\u6b63\u524d\u306eLocal Notification<\/h3>\n<pre class=\"toolbar-overlay:false lang:swift decode:true\">application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: UIUserNotificationType.Sound | UIUserNotificationType.Alert | UIUserNotificationType.Badge, categories: nil))<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u8a02\u6b63\u5f8c\u306eLocal Notification<\/h3>\n<pre class=\"toolbar-overlay:false lang:swift decode:true\">application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: [.Sound, .Alert, .Badge], categories: nil))<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u66f8\u304d\u65b9\u304c\u5909\u308f\u3063\u3066\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p>\u53c2\u8003:\u00a0<a class=\"question-hyperlink\" href=\"https:\/\/stackoverflow.com\/questions\/30761996\/swift-2-0-binary-operator-cannot-be-applied-to-two-uiusernotificationtype\" target=\"_blank\">Swift 2.0 &#8211; Binary Operator \u201c|\u201d cannot be applied to two UIUserNotificationType operands<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Swift\u3092\u4e45\u3057\u3076\u308a\u306b\u518d\u958b\u3057\u3066\u307f\u3066\u3001Local Notification\u3092\u5b9f\u88c5\u3057\u3088\u3046\u3068\u3057\u3066\u51fa\u305f\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u3002 Swift 2.0 &#8211; Binary Operator \u201c|\u201d cannot be applied&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67"}],"version-history":[{"count":1,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swift.tecc0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}