I want to remove the badge number from my iPhone application icon when a user scrolls. I'm using iCarousel class' carouselDidScroll
method. Unfortunately, the code I'm using (below) doesn't work, and the badge number remains visible. Any ideas?
- (void)carouselDidScroll:(iCarousel *)carousel
{
int badge=[[UIApplication sharedApplication] applicationIconBadgeNumber];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:badge--];
}