Use the following piece of code to set the badge number from within your application (suppose someNumber has been declared before):
Objective-C
[UIApplication sharedApplication].applicationIconBadgeNumber = someNumber;
Swift
UIApplication.shared.applicationIconBadgeNumber = someNumber
In order ...
Badges are numerical indicators of how many items are associated with a link:
Use the .badge class within <span> elements to create badges:
<a href="#">News <span class="badge">5</span></a><br>
<a href="#">Comments <span c...