V
V
Vlad Antonov2019-07-31 11:43:21
iOS
Vlad Antonov, 2019-07-31 11:43:21

How to add preset data to Core Data?

So that at the first start the information is already stored in the database.
While I'm throwing JSON into the application, parsing it and on the first run I drive everything into Core Data, but it all looks like a crutch. Need help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Cherny, 2019-08-04
@blackbirdv

you can immediately put a file in the SQLite project, only for this you will have to create it and fill it either using a dummy application with a similar Core Data model, or add such functionality (creating a seed) to the current project. We have used the latter approach.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question