Are values stored in NSUserDefaults removed when the app that put them there is uninstalled?

后端 未结 2 1823
不知归路
不知归路 2020-12-03 05:47

If I put a token (a string) into NSUserDefaults, lets say as a paramter passed to a REST API that is used by the app, and the app is uninstalled, will the string remain on t

2条回答
  •  囚心锁ツ
    2020-12-03 06:12

    No, it will not. I use NSUserDefaults in the exact same manner, and it will not stay after the app is deleted. You can verify this via Organizer if you need to.

    It will however persist through updates. I have been using TestFlightApp for all of my beta testing, and the token (and other saved user default data) remains. Hope this helps.

提交回复
热议问题