如何在到达推送通知时每次计算徽章值?
每次徽章价值增加1
答案 0 :(得分:0)
使用此代码,委托方法检查页面值
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{
NSDictionary *notification = [userInfo objectForKey:@"aps"];
//notification is what you want. print it to find out the details.
//Title, Badge Count and all that
}