0

I am talking about this:

The array I have is of type CLLocationCoordinate2D (google maps-type of coordinates).

Ujesh
  • 1,698
  • 2
  • 23
  • 35
konyv12
  • 716
  • 2
  • 8
  • 23
  • 2
    You could use NSArchiver to encode your objects as binary data, but it would be better to create an entity with latitude and longitude floats and then have a one-to-many relationship to this entity type. – Paulw11 Apr 08 '17 at 10:52
  • Thanks. A one-to-many relationship of what though? Can you be more specific please? – konyv12 Apr 08 '17 at 10:56
  • Possible duplicate of [How to save Array to CoreData?](http://stackoverflow.com/questions/29825604/how-to-save-array-to-coredata) – RajeshKumar R Apr 08 '17 at 10:59
  • Say your current entity is "Flight". Create a new entity "Location" with latitude and longitude attributes. Create an ordered one to many relationship from Flight to Location. – Paulw11 Apr 08 '17 at 10:59

0 Answers0