IOS push消息的数字不减少的问题
2015-05-15 15:39
232 查看
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产品细节__界面push后pop切换导航栏渐变问题
- server端向ios push消息代码
- iOS知识树,知识目录(包括对象、Block、消息转发、GCD、运行时、runloop、动画、Push、KVO、tableview,UIViewController、提交AppStore)
- [IOS问题]nested push animation can result in corrupted navigation bar
- ios pushViewController 页面不跳转问题解决
- iOS 【iOS 8 中设置applicationIconBadgeNumber(app新消息数字标识)和消息推送】
- iOS从当前隐藏导航界面push到下一个显示导航界面出现闪一下的问题
- ios消息推送全面解析和push证书的生成
- iOS的push方法推出控制器界面中单个屏幕的旋转问题
- 【转】iOS知识树,知识目录(包括对象、Block、消息转发、GCD、运行时、runloop、动画、Push、KVO、tableview,UIViewController、提交AppStore)
- IOS Push消息推送原理及应用
- python 发送 iOS APNS push 消息
- IOS push 出现问题
- iPhone消息推送机制(Push)实现及通过.net应用程序发送消息给ios应用程序
- iOS 自定义滑动返回和解决连续多次push,pop引起的crash问题
- IOS正确解决隐藏nabber后push、pop闪黑问题
- iPhone消息推送机制(Push)实现及通过.net应用程序发送消息给ios应用程序