How to save local data in Swift?
Question
I would like to save local data in my app, and need to use it sometime. The data could be a response from server.
The application is a swift-build application.
Answer
In Swift 3, we can use UserDefaults
to handle local data. Below is the example:
1 | // Setting |
Reference
This is the end of post