Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone notification icon

Tags:

icons

iphone

On my program icon i want to show how many show a number, like on the AppStore program icon, where it shows how many updates are available. How can i implement this on my own program icon?

like image 709
Hans Espen Avatar asked Dec 30 '22 23:12

Hans Espen


1 Answers

Your application can add a badge icon number by calling:

[UIApplication sharedApplication].applicationIconBadgeNumber = 1; // any NSInteger

This is available in iPhone 2.0, but in 3.0 the application doesn't have to be running to update the number using the push notification service (requires server in the cloud).

like image 102
Jason Harwig Avatar answered Jan 11 '23 09:01

Jason Harwig