怎么在程序关闭的情况下(在后台也关掉了)改变applicationIconBadgeNumber的值?
万能的csdn,有没有人告诉我答案,不要说做不到,已经有应用做了,就是不知道他怎么实现的
------解决方案--------------------
The notification itself contains the number to display in the badge.
所以,在这里
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notif {
application.applicationIconBadgeNumber = notif.applicationIconBadgeNumber-1;
}
要加上。否则,就不会改变。
------解决方案--------------------
6楼正解。