1

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

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

Moshe
  • 57,511
  • 78
  • 272
  • 425
RAMAN RANA
  • 1,785
  • 4
  • 21
  • 40

1 Answers1

2

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.

Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76