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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

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