IOS8 UILocalNotification 和之前的变化
更新:HHH   时间:2023-1-7


ios的本地消息需要用户允许后才可以使用

代码如下

UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil];

    [[UIApplication sharedApplication] registerUserNotificationSettings:settings];


返回移动开发教程...