iOS7 Map Kit remove default location icons

前端 未结 2 1940
挽巷
挽巷 2021-02-08 00:43

I am wondering if it\'s possible to remove all the default icons from the map kit. I did a lot of researches and tried a couple of different ways. Couldn\'t fin

2条回答
  •  青春惊慌失措
    2021-02-08 01:24

    It won't get rid of all those icons (I think the road markings will stay) but you can use the iOS 7 MKMapView property showsPointsOfInterest, setting it to NO to remove shops and other icons.

    [myMapView setShowsPointsOfInterest:NO]
    

    From the docs:

    When this property is set to YES, the map displays icons and labels for restaurants, schools, and other relevant points of interest. The default value of this property is YES.

提交回复
热议问题