如何从MKMapview中删除国家/州名称 [英] How to remove country/state names from MKMapview

查看:99
本文介绍了如何从MKMapview中删除国家/州名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iPhone中从 MKMapview 中删除​​国家/州名称。意味着我只需要空白的地图视图而没有任何名称。是否可以使用 MKMapview 或任何其他第三方地图。

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.

我想在 MKMapTypeStandard 地图类型中使用此功能。

I want to use this functionality with MKMapTypeStandard map type.

推荐答案

查看 MKMapViews 属性mapType MKMapTypeSatellite 。设置此类型,您将看到一个没有任何名称的地图。请参阅文档:
MkMapView课程参考

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

代码:

self.map.mapType = MKMapTypeSatellite;

这篇关于如何从MKMapview中删除国家/州名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆