Quote:
Originally Posted by iphonetony
using textview but the items inside the text view is not being saved would like the text to remain after the user logs out the app meaning using the home button. how to do
|
You have to save your value like this:
Code:
[[NSUserDefaults standardUserDefaults] setValue:@"VALUE" forKey:@"KEY"];
[[NSUserDefaults standardUserDefaults] synchronize];
And retrieve it like this:
Code:
NSString *Value = (NSString*) [[NSUserDefaults standardUserDefaults] valueForKey:@"KEY"];
Change @"VALUE" to the text inside your UITextView.