bytelee
2013-01-16 20:46:22 +08:00
if (![launchOptions objectForKey:@"UIApplicationLaunchOptionsRemoteNotificationKey"])
{
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
}
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
其实这样就可以,貌似如果直接设置0 有的时候是会有问题的。在简单点:
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
应该也行.