gpt4 book ai didi

iphone - UILocalNotification 执行操作

转载 作者:行者123 更新时间:2023-12-03 17:16:23 25 4
gpt4 key购买 nike

我希望有一个 UILocalNotification 在被触发时执行一个操作。我真正想做的是以编程方式更新 application.applicationIconBadgeNumber 。现在,每当用户退出应用程序时,我都会执行此操作,问题是即使用户没有使用该应用程序,徽章编号也可能必须更改。这可能吗?

最佳答案

您可能想阅读Local and Push Notification Programming Guide 。特别是this section 。最后阅读UILocalNotification Class Reference ,其中包括 James 的代码。

关于iphone - UILocalNotification 执行操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5460942/

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