Size Limitation of NSUserDefault?

我的梦境 提交于 2019-11-28 11:28:59

问题


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

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


回答1:


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.



来源:https://stackoverflow.com/questions/5698816/size-limitation-of-nsuserdefault

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!