Is there a way to update custom MKAnnotationView after change to custom MKAnnotation data? Is this where observers come into play (haven't used these before).
Currently for example I am doing the following manually:
In my custom MKAnnotation after making changes to data:
let annView: GCCustomAnnotationView = self.mapView.viewForAnnotation(annotation) as! GCCustomAnnotationView
annView.updateText()
In my custom MKAnnotationView:
func updateText() {
let gcAnnotation : GCAnnotation = self.annotation as! GCAnnotation
calloutView.line1.text = gcAnnotation.locality
calloutView.line2.text = gcAnnotation.sublocality
calloutView.line3.text = gcAnnotation.name
}