开发者

Size Limitation of NSUserDefault?

开发者 https://www.devze.com 2023-02-25 07:00 出处:网络
Is there a size limit to NSUserDefaults? What is it? I\'m afraid that such a limit ca开发者_JS百科n cause my app to crash.No, there is no size limit to NSUserDefaults, aside from the storage capacity

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

I'm afraid that such a limit ca开发者_JS百科n cause my app to crash.


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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号