A question related to NSUserDefault
<p>This is my below code in applicationwillterminate method.</p>

<pre><code>NSString *string4 = @"Objective-C";

NSUserDefaults* defs7 = [NSUserDefaults standardUserDefaults];
[defs7 setObject:string4 forKey:@"subject_textfield"];
</code></pre>

<p>This is my below code in applicationdidfinishlaunching method.</p>

<pre><code>NSUserDefaults* defs7 = [NSUserDefaults standardUserDefaults];
subject_textfield.text = [defs7 stringForKey:@"subject_textfield"];
</code></pre>

<p>but,when i press home and then i again launch application
at that time i'm getting nil value for subject_textfield.text.</p>

<p>Why is it so?</p>
