Size Limitation of NSUserDefault?
问题 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