I have an app where I am using apple push notifications. Now I need to show the badge number depending upon the notifications, and I also need to decrease the badge number accordingly. I know this method is used for showing badge, but I am getting how to implement it.
[UIApplication sharedApplication].applicationIconBadgeNumber = badgeNumer;
Can anyone help me with this?