您可以使用nsdefaults来存储它。类似的东西
#define kLocationLat @"LOCATION_LAT"
#define kLocationLng @"LOCATION_LNG"
// Store the location
[[NSUserDefaults standardUserDefaults] setDouble:location.coordinate.lat forKey:kLocationLat];
[[NSUserDefaults standardUserDefaults] setDouble:location.coordinate.lng forKey:kLocationLng];
// Retrieve the location
CLLocationDegrees lat = [[NSUserDefaults standardUserDefaults] doubleForKey:kLocationLat];
CLLocationDegrees lng = [[NSUserDefaults standardUserDefaults] doubleForKey:kLocationLng];
CLLocation *location = [[CLLocation alloc] initWithLatitude:lat longitude:lng];
山姆
ps我手头没有mac,所以上面的代码中可能有语法错误,但您知道了:)