在某个时间触发一个动作,可以吗?

发布于 2024-07-17 08:15:35 字数 129 浏览 4 评论 0原文

我正在研究iPhone的开发,我想知道是否可以在特定时间触发一个动作?

根据我所读到的内容,目前这似乎不是一个选项,因为不允许后台进程。 这是真的? 如果是这样,你们对替代方案有什么想法吗?

谢谢

I am just looking into development for the iPhone and I was wondering if it is possible to trigger an action at a certain time?

Based on what I have read it does not seem like this is currently not an option because there are no background processes allowed. Is this true? If so do you guys/gals have any ideas on alternatives?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

十二 2024-07-24 08:15:35

如果您的应用程序未运行,那么不,目前不可能。

如果您的应用正在运行,您始终可以使用 NSTimer

此外,此处提到了手动触发方法,其中涉及发送包含导致应用程序启动的链接的电子邮件。

If your app is not running, then no, it's not currently possible.

If your app is running, you can always use NSTimer.

Also, a manual trigger method was mentioned here on SO that involves sending emails with links in them that cause your app to start.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文