- - (void)applicationDidEnterBackground:(UIApplication *)application{
- [[UIApplication sharedApplication] setApplicationIconBadgeNumber:5];
- }
- //该片段来自于http://www.codesnippet.cn/detail/041220137747.html
来源: http://www.codesnippet.cn/detail/041220137747.html