Use Core Data or another API to interact with sqlite?

Asked

Viewed 278 times

1

I was researching how to save data on iPhone and iPads and came across many options, each with its complexity and purpose. Apple recommends that whatever the app, use Core Data, which is nothing more than a layer to interact with a Sqlite bank. I also saw that there are options to work directly with Sqlite without the use of Core Data, using functions based on C language, where you act directly on sqlite.

I would like to know, about your experience, when to use third-party Apis, third-party frameworks, or Core Data itself.

  • I use sqlite3, and a class to perform the functions.

  • Yes I used sqlite3 in a project recently, but I found it somewhat "laborious". The other day I saw a comment where the guy said: using C functions to treat a comic book is almost the same as being sadomasochistic.

1 answer

2


I particularly prefer Core Data, at first it may seem a little strange, but it is not so complex to use.

If you have a version of your app for Android I recommend that you use Sqlite direct, so you can use the same bank for both platforms.

Here’s a reading tip

  • Thanks!! I had started studying Core Data. Thanks for the links too.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.