我使用下面的代码,当用户按下一个按钮地图视图始终中心的地图
[mapview setShowsUserLocation:YES];
,然后follwoing将地图向TE用户的位置,让我的位置
- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
{
[mapView setCenterCoordinate:mapView.userLocation.location.coordinate animated:YES];
}
我的问题是如何防止地图始终集中在我的位置?我想让用户平移地图。
如何删除该地图中心的委托电话吗?你已经准备好了。 – Abizern 2012-03-09 16:49:06