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.
精彩评论