I use
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:[UIApplication sharedApplication].applicationIconBadgeNumber -1];
to reduce the number of icon badges, but it actually clears. when I press the home button, the number of icons is missing.
BUT if I try a fixed value like this
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:4];
icon counting exists as expected.
So the question is: why
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:[UIApplication sharedApplication].applicationIconBadgeNumber -1];
does not work?
source
share