Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoreData vs Archiving?

I ask this question not for a tutorial, but simply for advice. I am new to iOS programming and have made only a simple game. I want to extend the functionally of this game by including permanent character slots, who each have inventories, professions, stats, and names. For saving these locally, I need to know which route would be easier to take. So I will be saving strings, integers, and objects from probably 4 or 5 custom classes. Would it be possible to use NSCoding, which is supposedly easier to learn and implement? Or should I start learning CoreData? Just a quick response as to which one you believe would work for my application would be incredible, and I really appreciate you taking a few seconds to do so. Thank you kindly!

like image 801
Enigmatical Avatar asked Dec 28 '25 17:12

Enigmatical


1 Answers

If you want the shortest path, NSCoding is simple. If you want to learn then pick up Core Data.

Core Data is not that difficult to get the basic concepts in place. Once you start using it you will most likely use it on every project in the future. It really is a core feature of iOS. There is almost no application in the App Store that would not benefit from what Core Data does.

like image 60
Marcus S. Zarra Avatar answered Dec 31 '25 11:12

Marcus S. Zarra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!