Sie müssen die iPhone-App zwischen iPhone / iPad / iPod Touch usw. synchronisieren wie?Wolke?Zsync?Dropbox?

StackOverflow https://stackoverflow.com/questions/5491203

Frage

Ich habe Anfragen für meine iPhone-App erhalten, um es zwischen dem iPhone und dem iPhone und dem iPad einer Person synchronisieren zu können, oder zwischen zwei iPhones in derselben Familie usw. Ich habe jetzt seit einiger Zeit online gesucht, und das ist noch mir nicht klar Ich bin ein ziemlich neuer Entwickler, und ich weiß genug, um eine App veröffentlicht zu haben, aber ich bin kein professioneller Programmierer.

Ich weiß, dass Dropbox und SugarSync die "The Cloud" verwenden, aber ich habe sie noch nicht benutzt, und ich bin nicht sicher, ob ich sie für meine Kerndatenbank implementieren würde. Ich sah auch ein Video für Marcus Zarras Zsync, das großartig aussieht, aber ich habe noch keinen Desktop-Antrag, und ich bin mir nicht sicher, dass das die Lösung für mich ist.

Ich habe die Dropbox-API- und Muster-App heruntergeladen und fange an, mit dem Spielen zu spielen, aber ich möchte nicht zu viel Zeit verschwenden, wenn ich einen Kaninchenweg runters. Ich würde lieben, wenn die iOS eine Art Sync-Option angeboten hat, aber ich sah an und bin mir ziemlich sicher, dass es nicht ist.

Das scheint ziemlich kompliziertes Zeug zu sein. Ich würde lieben, wenn mich jemand in die richtige Richtung zeigen könnte. Vielleicht sogar ein Tutorial, wenn es einen gibt. Nur um die Kerndatenbank mit mehreren (möglicherweise noch mehr als 2) IDEVICES synchronisieren. Jede Hilfe wäre sehr dankbar.

War es hilfreich?

Lösung 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!

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top