/// 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:
Post a Comment