默认的MkMapView区域 [英] Default MkMapView Region

查看:53
本文介绍了默认的MkMapView区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当简单地添加到视图时,请告诉我默认地图位置是什么.我这样添加了mapview

Please tell me what is the default map location when it simply add to the view. I added mapview like this

MKMapView *mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0,  self.searchBar.frame.size.height, 320, 180)];

mapView.mapType=MKMapTypeStandard;

mapView.delegate=self; 

[self.view addSubview:mapView];

地图上将显示什么位置?

what location will show on map ?

这是根据设备坐标还是其他

Is this according to device coordinates or by other

谢谢

推荐答案

这样做后,请谷歌搜索并阅读苹果地图文档.

After done so googling and reading apple map doc.

我找到了解决方案,默认位置是在设置"->常规"->国际"->"ResionFormat"->选择您所在的国家/地区"中为国际"的设备本地.

I found the solution the default location is the device local that is International in Settings -> general ->International->ResionFormat-> select your country.

地图将根据此设置聚焦.

map will focus according to this setting.

这篇关于默认的MkMapView区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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