Your process is possibly terminated improperly so that NSUserDefaults do not have a chance to be stored. See also this and mostly this.
Your process is possibly terminated improperly so that NSUserDefaults do not have a chance to be stored. See also this and mostly this. The suggestion in the second post I link to is to call synchronize in applicationDidEnterBackground: Keep also in mind that terminating your app by stopping it in Xcode most often does not save user defaults.
Try sending the app to background with the Home button first. I think the framework synchronizes automatically then.
Thanks for your reply, I send it to background and then double clicked the home button and closed the app. Then, when I start it from simulator again, it crashed. But in XCode if I build -> run, it doesn't crash, but my nsuserdefaults aren't saved...hmm – user635064 May 17 at 15:50.
I could not understand about the way, you are accessing the NSUserDefault, The static function you used sharedDefaults with NSUserDefault does'nt exist in Apple Documentation Use As below to access NSUserDefault NSUserDefaults standardUserDefaults; For more read the blog post for using of NSUserDefault. IPhone Programming Tutorial – Saving/Retrieving Data Using NSUserDefaults.
Sorry, that's what I meant. Fixed my question. – user635064 May 17 at 15:55 @user635064 : Check the blog tutorial link for NSUserDefault.
– Jhaliya May 17 at 15:58 I know how to use NSUserDefaults.. it was a mistake, I wasn't copy pasting my code I thought it was sharedDefaults...thanks for your help. – user635064 May 17 at 15:58.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.