store array of cllocation value in userdefaults iphone sdk -


hi have array of cllocation values, need store array in userdefaults...how do it...?
hi these add object array: [am_locationmp.favarray addobject:[am_locationmp.locationdata objectatindex:am_locationmp.indexno]];

where location data array of location placemark values .

where maplocationvo class placemark maplocationvo *currentmaplocation;

[am_delegate.locationdata addobject: currentmaplocation];

this should enough write it:

nsuserdefaults *defaults = [nsuserdefaults standarduserdefaults]; [defaults setobject:yourarray forkey:@"clarray"]; [defaults synchronize]; 

Comments

Popular posts from this blog

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

mysql - How to insert just year and month into date field? -