草庐IT

latMeters

全部标签

ios - 使 mapkit map 以国家为中心

在我的ipad应用程序中,我需要放置一个国家的map,所以我的问题分为两部分:1:如何让map以国家为中心?2:如何设置map的初始Scale?谢谢 最佳答案 好的,您首先需要找到该国家/地区中部某处的纬度/经度坐标。假设您定义了以下内容:MKMapView*mapView;floatlatitude_coordinate;floatlongitude_coordinate;floatlatMeters;floatlonMeters;CLLocationCoordinate2Dcoordinates=CLLocationCoordi