我已经收到了我的iPhone应用程序的请求,能够在一个人的iPhone和iPad之间同步,或者在同一家庭中的两个iPhone之间进行同步。我现在一直在线搜索,而且它仍然是对我不清楚。我是一个漂亮的新开发人员,我知道已经发布了一个应用程序,但我不是专业程序员。

我知道Dropbox和Sugarsync使用“云”,但我还没有使用它们,我不确定如何为我的核心数据数据库实现它们。我还为Marcus Zarra的Zsync看了一个视频,看起来很棒,但我还没有桌面应用程序,我不确定这对我来说是解决方案。

我下载了Dropbox API和Sample App,我开始玩它,但如果我沿着兔子踪迹,我不想浪费太多时间。如果iOS提供某种同步选项,但我很愉快,但我很确定它没有。

这似乎是非常复杂的东西。如果有人能指向正确的方向,我会喜欢。如果有一个,也许甚至是教程。只是为了使核心数据数据库在多个(甚至超过2个以上)IDEVices之间进行同步。任何帮助都会受到极大地感谢。

有帮助吗?

解决方案 2

Just an update, and an answer to the syncing issue: iCloud seems like it will actually app syncing. I haven't tried it yet, but am planning to implement it. However, since users will only have limited free iCloud storage, and many won't want to pay, I am also implementing Dropbox for Backup/Restore (only). Hope this helps!

其他提示

It seems that, as expected, there is no readily available sync option without writing your own algorithm. Even then, it seems to be hit and miss at best as you add users and devices.

I have decided that for me, for now, the best option is DropBox, and using a simple file backup/restore. When you download the DropBox SDK, there is an iPhone App example in there that well demonstrates how to incorporate it into your app.

The issue I am now having has to do with Core Data. Once I overwrite my SQLite file, I am having a difficult time refreshing my data. It works fine if I close and restart the app, but I don't want to have the user do that.

I have tried many solutions from this site, and none of them have worked completely for me yet. I understand that I have to delete and recreate the persistent store, and that I have to delete and recreate my objects, and that I might have to delete and recreate my view controllers in my tab bar. And possibly also my MOC and MOM.

I understand the part about deleting and recreating the persistent store. I can delete my objects, but I am not sure how to re-create them. I think my issue is that I have a tab bar controller and my top level views do not get dealloc-ed. I have found snippets of code here and there but have not been able to piece them together for a solution yet and all I have is one giant mess of commented out code.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top