I'm sorry about my previous post, I was looking at the Apple Reference for this protocol and it stated the coordinate as readonly, which gave me problems when assigning its @property and then synthesizing its setters and getters. However:
Basically, I have my class set up as you mention. I tried the following:
Code:
MapAnnotation *startAnnotation = [[MapAnnotation alloc] initWithCoordinate:userLocation.coordinate];
MKPinAnnotationView *startAnnotationPin = [[MKPinAnnotationView alloc] initWithAnnotation:startAnnotation reuseIdentifier:@"StartPin"];
startAnnotationPin.pinColor = MKPinAnnotationColorGreen;
[mapView addAnnotation:startAnnotationPin];
I get this error: warning: class 'MKPinAnnotationView' does not implement the 'MKAnnotation' protocol