I am trying to plot a MKPolygon on a MKMapView in iOS 4.0. I have an NSArray which contains custom objects that include properties for latitude/longitude. I have a code samp
For iOS 7.0 and later we should use MKPolygonRenderer instead of MKPolygonView,
- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id)overlay
{
MKPolygonRenderer * polygonView = [[MKPolygonRenderer alloc] initWithPolygon:overlay];
polygonView.fillColor = [UIColor greenColor];
polygonView.strokeColor = [UIColor redColor] ;
polygonView.lineWidth = 1.0;
return polygonView;
}