Mine is [NSUserDefaults standardUserDefaults]not saved. Everything that I close the application and start it again is returned. I don’t have an iOS device, so I'm not sure if this will happen on the device, but none of the other applications do this in the simulator, which makes me believe that something is wrong with my code. I don’t know what part of the code I should include here, just just add / change keys in nsuserdefaults, and as I said, it works fine during the application, but not after I restarted it ...
I know I can call synchronize, but Apple advises against him and says that I should only call him if he should ... like that.
What could be wrong? Thank.
source
share