Ich suche die alternative Art und Weise von UIUserNotificationSettings in iOS 10.UIUserNotificationSettings veraltet in iOS 10
Apple-Dokumentation gegeben hat, die unten Rahmen für die weitere Nutzung zu implementieren. UNNotificationSettings in der Verbindung here.
Gibt es irgend jemand, der mich mit dem Beispielcode helfen kann, die unter Verwendung der UNNotificationSettings statt UIUserNotificationSettings
let notificationSettings = UIUserNotificationSettings(
forTypes: [.Badge, .Sound, .Alert], categories: nil)
application.registerUserNotificationSettings(notificationSettings)
Entschuldigung, ich habe die Antwort hier gefunden. http://stackoverflow.com/questions/37956482/registering-for-push-notifications-in-xcode-8-swift-3-0 – Prav