Reputation: 19946
I have an app working with NSCoding
, 3 classes, unrelated - hence went with the simple NSCoding
approach to save my array of objects.
However, now the question of iCloud
. From what I understand Core Data
now works with iCloud
basically out of the box. Very easy to implement.
To help you persist managed objects to the cloud, iCloud is integrated with Core Data. To use Core Data with iCloud, you simply tell Core Data to create an iCloud-enabled persistent store. The iCloud service and Core Data take care of the rest
So, the question is should I convert my app to use Core Data
, which gives me iCloud
basically default - or is it just as easy to set up iCloud
it my current set up with NSCoding
Developing in Swift for iOS 9
Thanks
Upvotes: 0
Views: 406
Reputation: 28339
iCloud support may work well with CoreData by now. However, it was so broken for so long that I (and others) completely stopped using it. I wasted so much time trying to get it to work, that I refuse to spend one more second trying to ever use it again.
After writing my own proprietary CoreData syncing solution, I finally tried Ensembles and I've never looked back.
However, if your application does not currently require CoreData, why not use the standard iCloud support? It seems to work fine for normal file syncing, which is what you seem to have if you are just saving objects to file.
No need to add the complexities of CoreData if your app is working just fine without it.
Upvotes: 2