IOS Mapview, MKMapView shows ZoomControls

I am trying to customize my MapView so that it displays zoom controls. Other properties work, but this one seems to be unknown to the compiler. This property is specified in apple documents for MKMapView. Does anyone know why this is shown in documents until it compiles?

mapView.showsUserLocation = true;
mapView.showsScale = true;
mapView.zoomEnabled = true;
mapView.showsZoomControls = true;  // Compile error

Error says

Value of type 'MKMapView' has no member 'showsZoomControls'
+4
source share
1 answer

The property is showsZoomControls not available in MKMapViewfor iOS . It is available on OS X though .

+2
source

All Articles