iOS7 Map Kit删除默认位置图标

我想知道是否可以从地图工具箱中删除所有的默认图标.我做了很多研究,尝试了几种不同的方法.找不到任何办法.不知道有人能帮助我们吗

解决方法

它不会摆脱所有这些图标(我认为道路标记将留下),但您可以使用iOS 7 MKMapView属性showsPointsOfInterest,将其设置为NO以删除商店和其他图标.
[myMapView setShowsPointsOfInterest:NO]

从文档:

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.

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...