Elton's Blog

如何在iPhone图标上加提示符(badge)

by on 二.21, 2010, under iPhone

如果你使用Apple iPhone自带的Mail程序,你会注意到,当有新邮件的时候,在这个程序的图标(icon)上会显示对应的新邮件的数字。 如果你的应用程序也想有类似的功能,其实很简单:

1
2
3
4
- (void)applicationDidFinishLaunching:(UIApplication *)application {
    //...
    [application setApplicationIconBadgeNumber:123];
}




:, ,

5 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit my friends!

A few highly recommended friends...