gpt4 book ai didi

iphone - 在应用程序不运行期间,如何增加applicationIconBadgeNumber的值?

转载 作者:行者123 更新时间:2023-12-01 19:22:43 25 4
gpt4 key购买 nike

如何通过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 - 在应用程序不运行期间,如何增加applicationIconBadgeNumber的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9381109/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com