【发布时间】:2012-02-21 16:21:28
【问题描述】:
如何通过 localNotification 增加 applicationIconBadgeNumber?
是否可以通过localNotification每天增加applicationIconBadgeNumber以添加[ 1 ]?
如果 localNotification 不起作用,我该如何更改 applicationIconBadgeNumber?
这是由 AppName 完成的:数一数! http://itunes.apple.com/app/id443809931?mt=8&ign-mpt=uo%3D4
七个月前,我通过电子邮件向该应用程序的开发人员提出了一个问题。 然而,没有回复。
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
localNotif.fireDate = startDate;
localNotif.timeZone = [NSTimeZone defaultTimeZone];
localNotif.repeatInterval = NSDayCalendarUnit;
//I don't know the follow code.I want to increase BadgeNumber during repeatInterval
localNotif.applicationIconBadgeNumber = 1++;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
【问题讨论】:
标签: iphone objective-c ios ios5 uilocalnotification