Does NSUserDefaults get erased when an app gets updated?

前端 未结 2 1601
情深已故
情深已故 2021-02-15 13:42

In my App i am using NSUserDefaults to save some data. I have a doubt regarding this when i update the app in App Store, Will The Data in NSUserDefaults will remain same or it i

2条回答
  •  难免孤独
    2021-02-15 14:09

    NSUserDefaults will not be erased during update, but it will be removed when you uninstall an app.

提交回复
热议问题