I am trying to register my application for local notifications this way:

UIApplication.sharedApplication().registerUserNotificationSettings(UIUserNotificationSettings(forTypes: UIUserNotificationType.Alert | UIUserNotificationType.Badge, categories: nil))

In Xcode 7 and Swift 2.0 – I get error Binary Operator "|" cannot be applied to two UIUserNotificationType operands. Please help me.

4 Answers
4

Leave a Reply

Your email address will not be published. Required fields are marked *