0

私のコードでは、私は呼んでいます

- (IBAction)goToUserLocation:(id)sender {
    [mapView setUserTrackingMode:MKUserTrackingModeFollow animated:YES];
}

次に、このコールバックがあります

- (MKAnnotationView *)mapView:(MKMapView *)theMapView viewForAnnotation:(id <MKAnnotation>)annotation
{
   // I then try to set the region in here, which doesnt always work.  Sometimes it zooms into the user location, then zooms back out to the region I specify.  Other times, it will just stay zoomed in.
}

MKUserTrackingModeFollow は、私が望むよりもはるかにズームインします。指定した領域にズームインするように設定できるようにしたいと思います。これを行う適切な方法はありますか、または MKUserTrackingModeFollow の領域が設定されていますか?

ありがとうございました!

4

1 に答える 1