I was
creating an iPhone application at the time of coding i need to save the state
of my application.
My problem
is that the data persisting across upgrades. Some applications that I was used
clearly got this wrong, and so I would not prefer them, so please give me
suggestion.
Tarun Kumar
21-Sep-2015The simple way to do exactly this to save:
To load:
The important thing is that you do not store very large values in NSMyUser. There's a chance of getting in trouble with apple review if you do.
Generally, user defaults is used for storing short keys and preferences such as the users volume level, wether they want to use game center, or send crash logs.