iOS-应用程序显示未读消息数

//应用图标显示数字

// IOS8开始需要注册一下
//[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil]];
[UIApplication sharedApplication].applicationIconBadgeNumber = 10;   

你可能感兴趣的:(iOS-应用程序显示未读消息数)