我检查了iterface builder中的复选框,以在地图上显示用户位置,它工作得很好。我想使用区域和用户位置将mapView缩放到用户位置,但是用户的纬度和经度是0.000,而应用程序正在缩放到中心为0和0的区域。为什么会这样呢?
CLLocation *location = [[[CLLocation alloc] initWithLatitude:mapView.userLocation.location.coordinate.latitude longitude:mapView.userLocation.location.coordinate.longitude] autorelease];发布于 2011-03-27 21:48:08
使用CoreLocation获取用户位置,而不是地图。
https://stackoverflow.com/questions/5449550
复制相似问题