iPhone——能否“唤醒”iPhone?一段时间后的应用程序?
我想知道是否有可能有一个在特定时间运行的“闹钟”风格的应用程序?应用程序是否必须运行然后保持打开状态?
我知道通过 iPhone 4 上的多任务处理,用户可以打开应用程序并在后台运行它。如果我原来的问题不可能,是否可以在一段时间后将在后台运行的应用程序带回前台?
非常感谢您的帮助。
I was wondering if it was possible to have an "alarm" style app that would run at a certain time? Would the application have to be run and then left open?
I know with multi-tasking on the iPhone 4 a user could open the app and run it in the background. If my original question isn't possible, is it possible to bring an app running in the background back into the foreground after a certain time?
Thank you very much for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 4.0 的新功能“本地通知”。 本地和推送通知编程指南
Have a look at the new 4.0 feature called Local Notifications. Local and Push Notification Programming Guide
您可以使用 EventKit 来发出某些警报。但是,无法安排应用程序的启动。您无法按照您的建议推进您的应用程序。不过,您可以发送推送通知。 Jessedc 建议的链接提供了大量有关其使用的深入信息。
You can use EventKit to put certain alarms. It is however not possible to schedule to launch of your app. You can not bring your app forward like you suggest. You could however send a push notification. The link suggested by Jessedc gives a lot of in-depth information about the use of this.