IOS push消息的数字不减少的问题
2012-08-26 16:08
239 查看
IOS push消息的数字不减少的问题,在做这个问题的时候。发现设置数字为0不能用,这时这个设置为0是写在应用程序加载的函数里面。只有双击Home键出现减号的时候删掉运行才会数字清零。
因此我把这个清零的数字写在
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Clear application badge when app launches
application.applicationIconBadgeNumber = 0;
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
NSLog(@"c");
}
因此我把这个清零的数字写在
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Clear application badge when app launches
application.applicationIconBadgeNumber = 0;
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
NSLog(@"c");
}
相关文章推荐
- IOS push消息的数字不减少的问题
- IOS push消息的数字不减少的问题
- ios菜鸟之路:消息推送之badgeNum、右上角小红圈数字不显示问题
- ios pushViewController 页面不跳转问题解决
- iOS从当前隐藏导航界面push到下一个显示导航界面出现闪一下的问题
- iOS的push方法推出控制器界面中单个屏幕的旋转问题
- 【转】iOS知识树,知识目录(包括对象、Block、消息转发、GCD、运行时、runloop、动画、Push、KVO、tableview,UIViewController、提交AppStore)
- iOS 自定义滑动返回和解决连续多次push,pop引起的crash问题
- iOS 【iOS 8 中设置applicationIconBadgeNumber(app新消息数字标识)和消息推送】
- ios消息推送全面解析和push证书的生成
- IOS push 出现问题
- iOS push时 tabbar隐藏的问题
- iOS之push消息推送(二)图解
- iOS推送消息报错误“Domain=NSCocoaErrorDomain Code=3000”的可能问题
- ios消息推送全面解析和push证书的生成
- IOS正确解决隐藏nabber后push、pop闪黑问题
- IOS Push消息推送原理及应用
- 【转来的精】iOS知识树,知识目录(包括对象、Block、消息转发、GCD、运行时、runloop、动画、Push、KVO、tableview,UIViewController、提交AppStore)
- [IOS问题]nested push animation can result in corrupted navigation bar
- iOS 实现角标 新消息提示红点 数字角标