save - iPhone App : Storing / Saving personal preferences once per App -


i want store / save personal preference settings email, phone number app. have few forms send info email id. want know email & phone number of user can contact person if need be. don't want users keep entering email id & phone no. everytime in each form. it's wise take these inputs (email & phone) once per device / per app installed on device.

i trying use .plist purpose. have no success. how do it? example code (or) links?

thanks. appreciate help.

you might want check out nsuserdefaults:

// storing values nsuserdefaults *prefs = [nsuserdefaults standarduserdefaults]; [prefs setobject:@"foo@bar.com" forkey:@"usermail"]; [prefs synchronize]; // reading values, after application restart nsuserdefaults *prefs = [nsuserdefaults standarduserdefaults]; nsstring *mail = [prefs stringforkey:@"usermail"]; 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -