gpt4 book ai didi

ios - 过去带有 fireDate 的 UILocalNotification,但带有 repeatInterval

转载 作者:行者123 更新时间:2023-11-29 02:18:49 25 4
gpt4 key购买 nike

如果我创建一个UILocalNotification并将其fireDate设置为过去并使用repeatInterval,那么将来下次repeatInterval到期时它会触发吗?或者 UILocalNotification 只会在未来的 fireDate 时触发?

最佳答案

会的。
如果您过去在应用程序中设置了一个 -fireDate,它将立即被触发,并且应该在 UIApplicationDelegate application:didReceiveLocalNotification: 方法中进行处理。
如果您还设置了重复间隔,您的通知将继续在乘以 -repeatInterval

的确切时间触发

关于ios - 过去带有 fireDate 的 UILocalNotification,但带有 repeatInterval,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28410343/

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