问题
I am using LocalNotification in my app. It is working fine but once ApplicationIconBadgeNumber is set, not able to remove it from App. How to remove it?
回答1:
You need to set the application applicationIconBadgeNumber. For example in the application didReceiveLocalNotification.
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notif {
application.applicationIconBadgeNumber = notif.applicationIconBadgeNumber-1;
}
来源:https://stackoverflow.com/questions/5553179/how-to-remove-the-cancel-applicationiconbadgenumber-from-localnotification