Search code examples
iphoneobjective-ciosxcodensuserdefaults

Is there any limit in storing values in NSUserDefaults?


I have used NSUserDefaults to store some values in my app. Is there any limit for storing values in NSUserDefaults?


Solution

  • As long as there's enough space on the iPhone/iPad, you can store NSUserDefault values. All those values is stored into a .plist file, and this file is very small, most of the time under 1 kb (unless you store a lot of data).