我已经确定,
这是我下面在应用中确定的方法。
NSString *string4 = @"Objective-C";
NSUserDefaults* defs7 = [NSUserDefaults standardUserDefaults];
[defs7 setObject:string4 forKey:@"subject_textfield"];
下面是应用有限发射方法中的我。
NSUserDefaults* defs7 = [NSUserDefaults standardUserDefaults];
subject_textfield.text = [defs7 stringForKey:@"subject_textfield"];
but,when i press home and then i again launch application at that time i m getting nil value for subject_textfield.text.
为什么如此?