In our map, we are going to drop pins down at each restaurant location. These pins are called annotations, more specifically, MKAnnotation. MK stands for MapKit and is part of the MapKit framework. Since we are going to create multiple MKAnnotation protocols, we are going to create a class that conforms to MKAnnotation.
Setting up map annotations
What is an MKAnnotation?
MKAnnotation is a protocol that provides us with information related to a map view. Protocols provide a blueprint for methods, properties, and other required functionalities. MKAnnotation will contain information, such as the coordinates (latitude and longitude), title, and subtitle of the annotation.
To drop a pin onto a map, we must subclass MKAnnotation...