NSString *string = @"Hardwork";
NSUserDefaults* defs111 = [NSUserDefaults standardUserDefaults];
[defs111 setObject:string forKey:@"first_name_textfield"];
Hi,
In my code I’m unable to set this value string for key first_name_textfield.
Why is it,so?
I have used this code to save and retrieve the values using NSUserDefaults. So refer this ,it will help you.
Thanks.