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
Post a Comment