Factory of objects related to local persistence in Swift

0

In the application I'm developing using Swift, I need to have access to a locally persisted data entity, this entity will be built through a Factory based on data probably obtained through a request and return in JSON, through a process of authentication on a remote server and so stored locally to avoid constant queries.

How should such local persistence be done?

    
asked by anonymous 19.09.2015 / 00:54

1 answer

1

It is recommended to use CoreData to store the data on the device locally. In the same way, FMDB can be used, or depending on the need, if there is too little data to be stored, you can use NSUserDefault.

On this site you will find a tutorial divided into four well-detailed parts: Core Data in Swift

I hope to help you

    
29.12.2015 / 13:54