cocoa - save the text on coreData -


i new iphone development. in app, using 2 textfield , want save text on dada base entered in textfield want display it. here using coredata base. feeling difficult understand classes on coredata base. here created view based application. classes required achieve , there sample , idea?.

if want save 2 nsstrings, should use simpler storage method, nsuserdefaults, instead of core data, used storing larger quantities of data. can save object nsuserdefaults using code:

[[nsuserdefaults standarduserdefaults] setobject:somestring forkey:@"somekey"]; 

then can retrieve saved object this:

nsstring *somestring = [[nsuserdefaults standarduserdefaults] objectforkey:@"somekey"]; 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

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