先加权限
UIUserNotificationSettings *mySettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:mySettings];
[UIApplication sharedApplication].applicationIconBadgeNumber = 13;
然后推出 显示未读消息13条