Search code examples
iosiphoneuikitmapkitmkmapview

MKMapView cornerRadius only works for upper left corner


i added a cornerRadius to layer of MKMapView something like

[self.routeMapView layer].cornerRadius = 20.0f;

this property effects only for upper left corner. Rest is not changed at all.

I dont know if there is a way to make mapView rounded;


Solution

  • Use a container view and specify the cornerRadius for the layer of the container view.