每天在特定时间呼叫方法

编程入门 行业动态 更新时间:2024-10-25 08:24:56
本文介绍了每天在特定时间呼叫方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的应用程序在自助服务终端模式下不断运行。在特定时间每24小时一次,我需要将核心数据中的一些数据同步到Web服务。

My app runs constantly in kiosk mode. Once every 24 hours at a specific time I need to sync some data from core data to a web service.

我知道如何进行同步,但我不知道如何安排应用程序在每天的特定时间进行同步通话,例如在凌晨02:45。

I know how to do the sync piece but I don't know how to schedule the app to make the sync call at a specific time each day e.g. at 02:45 am.

当应用程序不断运行时,是否可以执行此类操作?

Is it possible to do something like this when an app is running constantly?

推荐答案

使用本地通知。这是一个教程: http:// www。 icodeblog/2010/07/29/iphone-programming-tutorial-local-notifications/

Use Local Notifications. Here is a tutorial:www.icodeblog/2010/07/29/iphone-programming-tutorial-local-notifications/

希望这有助于你开始...

Hope this helps u to start...

这也是:

本地通知

后台任务

更多推荐

每天在特定时间呼叫方法

本文发布于:2023-11-25 18:39:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630890.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   方法   在特定

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!