Best practice for storing temporary data in swift

前端 未结 5 1156
太阳男子
太阳男子 2021-01-02 18:56

I have developed an app that gets a lot of JSON data from server and shows on different VCs.What I did was getting data and setting data to static v

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 19:20

    For "small" data like key : value it's best to use UserDefaults. If you have more to store, use CoreDara as this is basically a SQLite database.

提交回复
热议问题