How to store CLLocation using Core Data (iPhone)?
问题 I'm trying to save a location and retrieve the location on a map afterward using Core Location, MapKit and Core Data frameworks. What I've done is I just made entity named POI and added properties such as latitude (double type), longitude (double type) with few others. Simply put, my app saves POI with two NSNumbers. (lat and long) but I feel like there must be a smarter way to store CLLocation than that. cheers. 回答1: What you're doing is fine. You should save the latitude and longitude as