UILocalNotification会在iOS 10上崩溃吗?

S.J*_*S.J 2 objective-c ios uilocalnotification swift ios10

这是当前的UILocalNotification类,这是苹果刚刚在wwdc 16中宣布的iOS 10 UserNotification.

使用的旧应用程序UILocalNotification是否会在iOS 10上崩溃?

JAL*_*JAL 6

创建一个UILocalNotification对象不会导致iOS 10设备崩溃(我只是尝试使用Xcode 8 beta).Xcode会警告您,UILocalNotification自iOS 10起已弃用,而UNNotificationRequestUserNotifications模块应改为使用.UNNotificationRequest如果您的目标是iOS 10及更高版本,强烈建议您迁移代码.