我知道如何检查互联网连接。告诉我如何同步应用程序数据。iPhone:如何在互联网可达时与网络服务同步数据?
当互联网可用时,同步如何工作?
我的困惑:
我有应用程序,它使用Web服务,以显示在iPhone和数据也现场。现在我可以在网络可用时更新用户的工作通过在用户执行某项任务时同时调用网络服务。
但当网络不可用,我必须保持用户的本地数据(说的SQLite)在iPhone,当互联网是到达我不得不更新服务器上的所有数据。
For Example,
If internet is reachable, user works on some task and I update the data on server at the dame time.
But Now internet is not reachable, user works on `N task`. I can not update on server, I have to wait for internet
How can I update all task on web-server at time?
所以我的问题是:
How can I update all the data when net is available ?
任何链接或代码,它可以帮助我吗?
你使用Reachability类吗? – user784625 2012-02-02 14:13:18
所以你真正想要的是一个SQLlite速成课程?!? – AnthonyBlake 2012-02-02 14:59:46
@AnonyBlake:我想了解Sync过程的基本知识。 – Devang 2012-02-02 16:24:09