Tuesday, 4 June 2013

How to create iOS application badge: cocos2d/Xcode

In many iOS apps, you may have noticed the number indicator inside a red circle above the application icon. It is called icon badge or simply badge.




The badge is used mainly for indicating local or push notification messages. You can create the icon badge with desired number inside with a very easy, single line code as below:

Syntax:

        [UIApplication sharedApplication].applicationIconBadgeNumber = 23;

No comments:

Post a Comment