Do you mean between sessions of your app running? If so, consult your thread about NSUserDefaults, particularly the post by Macdonaldsd.How can you Save and read information in your application such as a high score.
What is going wrong with it? Do you have a code snippet we can look at?yes. I tried that but for some it didn't save the text.
- (void)viewDidLoad {
[[NSUserDefaults standardUserDefaults] setObject:@"Name" forKey:@"Text"];
[super viewDidLoad];
}
- (IBAction)SetTextFieldToSavedText {
NSString *name = [ [NSUserDefaults standardUserDefaults] stringForKey:@"Text"];
names.text = name;
}
- (IBAction)PersonEndedTyping {
[[NSUserDefaults standardUserDefaults] setObject:names forKey:@"Text"];
}
names is a UITextField object, not an NSString. What you are doing is setting the UITextField object for that key in NSUserDefaults. What you want to do is set the value of the text property of the UITextField. Like this:Code:[[NSUserDefaults standardUserDefaults] setObject:[B]names[/B] forKey:@"Text"];
[[NSUserDefaults standardUserDefaults] setObject:names[B].text[/B] forKey:@"Text"];
It is. There's even a whole thread about it: Announcing CraigsHarvestBy the way is that app CraigsHarvest your advertising under your comments yours?
Thank you. We appreciate the comments.I Bought it i really like your interface and how smoothly it runs