I see that some applications in iPhone show a red circle with the number of notifications from the application, how is that done?
Turn on App icon badges from Settings. Navigate back to the main Settings screen, tap Notifications, and then tap Advanced settings. Tap the switch next to App icon badges to turn them on.
Go to Settings > Notifications and select an app. Tap Show Previews and choose an option.
The Show Notification action creates a system notification. Show Notification runs instantly and continues to the next action (unlike the Show Alert action, which pauses the shortcut).
Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.
[[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";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With