I have a MapView that I'm trying to add an Annotation at the current Coordinates.
My Code in viewWillAppear:
CLLocationCoordinate2D location;
location.latitude = [maps.barLat doubleValue];
location.longitude = [maps.barLong doubleValue];
[_mapView addAnnotation:location];
I'm getting an error on the addAnnotation
that says
Sending CLLocationCoordinate2D to parameter of incompatible type MKAnnotation.
All the other examples I see have no problem with this code, what am I missing?