Sunday, June 27, 2010

saving and retreving data

/// setting dic
NSUserDefaults *saveDict = [NSUserDefaults standardUserDefaults];
[saveDict setObject:geotext forKey:@"keyToLookupString"];

// getting dic

NSUserDefaults *gete = [NSUserDefaults standardUserDefaults];

// getting an NSString
NSString *myString = [gete stringForKey:@"keyToLookupString"];
NSLog(@" this output is %@",myString);

No comments:

FEEDJIT Live