Skip to content
Piergiuseppe Longo edited this page Nov 20, 2015 · 1 revision

Contents

Import Model

If you have a pre-populated .sqlite database is very easy to import the file in the app:

SuperCoreDataStack.defaultStack.importSqliteFile("SuperRecordDemo", shouldOverride: false)

If shouldOverride is true the old .sqlite file is deleted otherwise nothing happens. The most easy way to export the .sqlite database from an existing app is using Xcode->Window->Devices and then choose your device and the app then press the gear and finally download the container. Save your container and open it with a right click and Show Package Contents. The file is located in AppData/Documents/

Clone this wiki locally