objective c - Save persistent data easily and read in iOS -
wanted ask if objective-c exists store data on device , recover other sqlite android have option:
sharedpreferences prefs = getsharedpreferences("mispreferencias",context.mode_private); int idusuario = prefs.getint("idusuario",0); int idtipoauto = prefs.getint("idtipoauto",0);
there in objective-c fast can read without problem or change @ time, if close app information persist in app
nsuserdefaults
/ core data / file on disk (either plist or binary) / keychain
there many options depending on data is, how you're going use , how long should survive for...
Comments
Post a Comment