iOS 8 图标上的提醒数字需要用户点击选择才可以显示

    UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil];

    [[UIApplication sharedApplication] registerUserNotificationSettings:settings];

    [UIApplication sharedApplication].applicationIconBadgeNumber=1;

你可能感兴趣的:(ios)