1
plucury 2013-01-16 18:43:28 +08:00
这个需要应用自己去掉的,或者再推一个badge:0
|
2
mercurylanded OP @plucury 应用怎么去?调用哪个方法?
|
3
jcccn 2013-01-16 20:26:17 +08:00 1
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
|
4
bytelee 2013-01-16 20:46:22 +08:00 1
if (![launchOptions objectForKey:@"UIApplicationLaunchOptionsRemoteNotificationKey"])
{ [[UIApplication sharedApplication] setApplicationIconBadgeNumber:1]; } [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; 其实这样就可以,貌似如果直接设置0 有的时候是会有问题的。在简单点: [[UIApplication sharedApplication] setApplicationIconBadgeNumber:1]; [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; 应该也行. |