Anybody know how to implement the red number indicators (like the email count notification)? I cant seem to google this up anywhere.
Thanks!
Anybody know how to implement the red number indicators (like the email count notification)? I cant seem to google this up anywhere.
Thanks!
What you want is called a "badge".
[UIApplication sharedApplication].applicationIconBadgeNumber = 2;
EDIT: removed SetApplicationBadge
What you are looking for is the applicationIconBadgeNumber
property which is a property of UIApplication
.
To set the badge, from anywhere in your app, use:
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber = 1; // set to any integer
To remove the badge, set the property to 0.
It looks like a code you guys are using involves a program. (I assume) What program are you guys using? And where do you get it? Thanks in advance.