iOS7 Map Kit remove default location icons

我与影子孤独终老i 提交于 2019-12-03 16:34:46

问题


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 find any way to do this. Don't know if anybody can help us out.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/19600275/ios7-map-kit-remove-default-location-icons

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!