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

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

    [[UIApplication sharedApplication] registerUserNotificationSettings:settings];

    [UIApplication sharedApplication].applicationIconBadgeNumber=1;

posted on 2015-04-27 14:47  DeanLee  阅读(139)  评论(0)    收藏  举报