I see that some applications in iPhone show a red circle with the number of notifications from the application, how is that done?
How to add notifications to icon in iOS application
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:99]
Zero value hides the badge.
It is called a Badge, and it is used for icons
, tabbaritems
mostly.
You can set it up like
UITabBarItem *featured = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured tag:0];
featured.badgeValue = @"1";
The question specifically referred to the badge on the Springboard, which was correctly answered by Jose. –
Rainstorm
© 2022 - 2024 — McMap. All rights reserved.