Why should I use Core Data for my iPhone app?

前端 未结 7 1556
旧巷少年郎
旧巷少年郎 2020-12-01 00:40

I\'m working on my 2nd iPhone app and am curious about Core Data. Time on the project is limited, as is my time overall.

I\'m the only dev and I have a feeling tha

7条回答
  •  抹茶落季
    2020-12-01 01:24

    As far as the learning curve goes, I don't think it's as bad as you think. Using Apple's example classes and default CoreData project template, I was able to have a working CoreData app (fairly simple, but not trivial) up in a single afternoon, and it only took a couple days of playing around with the code before I had a really good understanding of what all the moving parts were (all while developing the rest of the app, so no time was wasted in tinkering).

    CoreData works very...logically, I guess, and it's incredibly convenient. It saves you a lot of overhead, and I know it certainly saved me a lot of time writing that app. The short initial investment in learning the new technology was well worth it in the long run, now that I have such a powerful tool in my holster.

提交回复
热议问题