取消notif(2)
UIApplication *app = [UIApplication sharedApplication];
app.applicationIconBadgeNumber = 0;
[app cancelAllLocalNotifications];
UIApplication *app = [UIApplication sharedApplication];
app.applicationIconBadgeNumber = 0;
[app cancelAllLocalNotifications];
2017-12-04
取消notif
NSArray<UILocalNotification *> *localNotifications = [UIApplication sharedApplication].scheduledLocalNotifications;
UILocalNotification * notif = localNotifications[0];//这里选择notif对象
[[UIApplication sharedApplication]]cancelLocatNotification:notif];
NSArray<UILocalNotification *> *localNotifications = [UIApplication sharedApplication].scheduledLocalNotifications;
UILocalNotification * notif = localNotifications[0];//这里选择notif对象
[[UIApplication sharedApplication]]cancelLocatNotification:notif];
2017-12-04