How to remove country/state names from MKMapview

2019-01-26 21:11发布

问题:

I want to remove country / state names from MKMapview in iPhone. Means I need only blank map view without any name on it. Is this possible with MKMapview or any other third party maps.

I want to use this functionality with MKMapTypeStandard map type.

回答1:

Have a look at MKMapViews property mapType MKMapTypeSatellite. Setting this type you will see a map without any names on it. See the docs: MkMapView Class Reference

Code:

self.map.mapType = MKMapTypeSatellite;