I'm integrating Parse Push notifications into an app, and have got caught up in Swift 2.0 conversions. Code is:
if application.respondsToSelector("registerUserNotificationSettings:") {
let userNotificationTypes: UIUserNotificationType = [.Alert, .Badge, .Sound]
let settings = UIUserNotificationSettings(forTypes: userNotificationTypes, categories: nil)
application.registerUserNotificationSettings(settings)
application.registerForRemoteNotifications()
} else {
let types: UIUserNotificationType = [.Badge, .Alert, .Sound]
application.registerForRemoteNotificationTypes(types)
}
Xcode complains that "Cannot convert value of type 'UIUserNotificationType' to expected argument type 'UIRemoteNotificationType'