I am want to store MKMapItem that was previously found by MKLocalSearch in Core Data so I can show it to the user when the view loads in the future.
What I have is I have created an Entity in xcdatamodeld file and created a binaryData attribute called mapItem.
I want to encode the found MKMapItem to binary data and store it in core data.
Later I want to decode it to an MKMapItem.
I noticed that MKMapItem has an encode method that needs an NSCoder object.
I am not super familiar with NSCoding so any help will be appreciated.
I can always save the string attributes from MKMapItem in core data by creating multiple attributes for the entity, but I was wondering if there was an easy way.
Thanks!