iOS 10 时 UILocalNotification 会崩溃吗

Will UILocalNotification crash on iOS 10

这是 Apple 刚刚在 wwdc 16 上宣布的当前 UILocalNotification class and this is iOS 10 UserNotification

使用 UILocalNotification 的旧应用程序会在 iOS 10 崩溃吗?

创建 UILocalNotification 对象不会导致 iOS 10 设备崩溃(我刚刚在 Xcode 8 beta 上尝试过)。 Xcode 会警告您 UILocalNotification 自 iOS 10 起已弃用,应改用 UserNotifications 模块中的 UNNotificationRequest。如果您的目标是 iOS 10 及以上,强烈建议迁移您的代码以使用 UNNotificationRequest