UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber = 3;
+ (void)setBadgeNumber:(NSUInteger)totalBedgeNumber{
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber = totalBedgeNumber;
}
+ (void)increaseBadgeNumber{
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber += 1;
}
+ (void)decreaseBadgeNumber{
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber -= 1;
}
application.applicationIconBadgeNumber = 3;
+ (void)setBadgeNumber:(NSUInteger)totalBedgeNumber{
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber = totalBedgeNumber;
}
+ (void)increaseBadgeNumber{
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber += 1;
}
+ (void)decreaseBadgeNumber{
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber -= 1;
}
No comments:
Post a Comment