I have searched everywhere and tried lots of code but nothing seems to be working for me. All I need to do is to load (on viewDidLoad) a text field and save it when a button is
Use the NSUserDefaults class which was specifically made for this scenario.
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
// saving a NSString (you usually do this when the value is being submitted)
[defs setObject:textField.text forKey:@"aKey"];
[defs synchronize]; //this commits the new value - shouldn't be necessary because this is doe automatically, but just in case...
// loading a NSString (you usually do this on viewDidLoad)
testField.text = [defs objectForKey:@"aKey"];
The value is stored across sessions.
You can store other value types as well (other than NSString).
Use a different key for each field for which you want to store values.
This can also be used to store app configurations/options/etc