iOS7 Map Kit remove default location icons

前端 未结 2 1941
挽巷
挽巷 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.

    0 讨论(0)
  • 2021-02-08 01:24

    From what I know Apple is not possible to delete the icons kit IOs7 the maps, there may be some way to let him invisible, but could not find a way to do the same as you said you tried several ways I tried too and got no success, I have helped

    0 讨论(0)
提交回复
热议问题