Size Limitation of NSUserDefault?

后端 未结 1 1655
迷失自我
迷失自我 2020-12-22 02:38

Is there a size limit to NSUserDefaults? What is it?

I\'m afraid that such a limit can cause my app to crash.

相关标签:
1条回答
  • 2020-12-22 03:06

    No, there is no size limit to NSUserDefaults, aside from the storage capacity of the device itself.

    if you are storing a dynamic amount of variables, for example, you are recording time stamps every time the user presses a button, I would recommend implementing an SQL db.

    0 讨论(0)
提交回复
热议问题