【发布时间】:2015-09-19 12:58:45
【问题描述】:
我正在尝试快速发送通知。这是我在 appdelegate.swift 文件中注册通知的代码
application.registerUserNotificationSettings(
UIUserNotificationSettings(
forTypes:UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, categories: nil))
我收到此错误:
二元运算符'|'到两个 'UIUserNotificationType' 操作数。
如果你能帮我找到这个问题的解决方案,那就太好了。
谢谢
【问题讨论】:
标签: ios swift notifications xcode7