Elton's Blog

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

by Elton on 2010年02月21日, under iPhone

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

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

相关文章:

  1. 第一个iPhone App成功顺利发布!送促销码!!
  2. 如何在iPhone的应用中使用Google Map
  3. 设置statusBar的颜色
  4. 使用Google Analytics跟踪你的手机应用
  5. 给TableView添加背景
:, ,

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...