嗨,我有一个 cllocation 值数组,我需要将该数组存储在 userdefaults 中...我该怎么做...?
您好,我在数组中添加对象:[AM_locationMP.favArray addObject:[AM_locationMP.locationData objectAtIndex:AM_locationMP.indexno]];
其中位置数据是位置地标值的数组。
其中 maplocationVO 类用于地标 MapLocationVO *currentMapLocation;
[AM_delegate.locationData addObject: currentMapLocation];