我想迅速发送通知.这是我在注册通知的appdelegate.swift文件中的代码
application.registerUserNotificationSettings(
UIUserNotificationSettings(
forTypes:UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, categories: nil))
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
二元运算符'|' 两个'UIUserNotificationType'操作数.
如果你能帮助我找到解决这个问题的解决方案,那就太好了.
谢谢