mardi 5 janvier 2016

iOS: How to copy pre-seeded database at the first running app with SQLite.swift to writeable location?

I had the previous question here about database location. What different between store database in different locations in iOS?

I'm confused in copying pre-seeded database to the writable location.

Now, every time I run and build my app, the in-use database will be replaced by pre-seeded db.

And in the future, if I update my app version, how do I prevent the database from being replaced?

Aucun commentaire:

Enregistrer un commentaire