Я интегрирую уведомления Parse Push в приложение и попал в конверсии Swift 2.0. Кодекса:Интеграция оповещений о переносе паролей в проект Xcode 7 (Swift)
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 жалуется, что «Невозможно преобразовать значение типа„UIUserNotificationType“к ожидаемому типу аргумента„UIRemoteNotificationType“