Revision: 30937
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 25, 2010 23:50 by iswear_wxp
Initial Code
UIApplication的一个属性,就查了下API,果然找到了这个属性: @ property(nonatomic) NSInteger applicationIconBadgeNumber; // set to 0 to hide. default is 0 就结åˆæ‰‹ä¸Šæ£åœ¨åšçš„项目,看看效果(在程åºé€€å‡ºæ—¶ï¼Œæ˜¾ç¤ºä»Šæ—¥è¦å¤„ç†çš„事件数目): - (void)applicationDidEnterBackground:(UIApplication *)application{ [[UIApplication sharedApplication] setApplicationIconBadgeNumber: _homeViewController._dayViewController.eventCountOfToday]; }
Initial URL
http://www.cnblogs.com/tracy-e/archive/2010/08/23/1806302.html
Initial Description
Initial Title
在程åºçš„ICON上显示数å—
Initial Tags
iphone
Initial Language
iPhone