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

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -