如何以编程方式在iOS中设置自定义位置?

时间:2016-02-12 12:49:29

标签: objective-c

如何以编程方式在iOS中设置自定义位置?

我正在尝试以编程方式在iOS中自定义用户的当前位置。

1 个答案:

答案 0 :(得分:0)

MKCoordinateRegion region = [mapView regionThatFits:MKCoordinateRegionMakeWithDistance(mapView.userLocation.coordinate, 200, 200)];
[mapView setRegion:region animated:YES];

Set a default location for the map to start at - iOS