title: How to set identifier in MKPointAnnotation
body: <p>I am trying to make a lot different type of annotation. All annotation need to customize for the beautiful reason.</p>
  
  <p>I know that it need to use viewFor Annotation, but how can I know what kind of the annotation?</p>
  
  <p><a href="https://i.stack.imgur.com/xI0UV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xI0UV.png" alt="enter image description here"></a></p>
  
  <pre><code>func addZoneAnnotation() {
  
      let zoneLocations = ZoneData.fetchZoneLocation(inManageobjectcontext: managedObjectContext!)
  
      for zoneLocation in zoneLocations! {
  
          let zoneCoordinate: CLLocationCoordinate2D = CLLocationCoordinate2D(latitude: Double(zoneLocation["latitude"]!)!, longitude: Double(zoneLocation["longitude"]!)!)
  
          let zoneAnnotation = MKPointAnnotation()
          zoneAnnotation.coordinate = zoneCoordinate
  
  
          map.addAnnotation(zoneAnnotation)
  
      }
  
  }
  </code></pre>