iPhone iOS 4 - 安排应用程序在特定时间和日期运行功能
我正在寻找一种方法,能够将我的应用程序设置为根据时间和星期几启动并执行某些功能。该应用程序需要能够设置时间和星期几,然后根据该时间和日期运行特定功能。例如,如果我将应用程序设置为每周六中午 12:00 运行 1 个函数,每周日下午 3:00 运行另一个函数,则可以以某种方式在后台处理它们。本质上,我希望它像预定的后台一样运行,我可能会在一周内运行增量备份,并在周末运行完整备份。
我到处寻找,似乎找不到任何线索。
任何帮助将不胜感激! 谢谢。
I'm looking for a way to be able to set my app to launch and carry out certain functions depending on the time and day of week. The app needs to be able to set the time and days of week, then run a specific function depending on that time and date. For instance if I set the app to run 1 function 12:00pm every Saturday, and another 3:00pm every Sunday, they can be processed in the background somehow. Essentially I want it to run like a scheduled background, where I might run an incremental backup during the week and a full backup on the weekend.
I've searched all over and can't seem to find any leads.
Any help would be greatly appreciated!
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看本地通知:
Take a look at Local Notifications: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008194