2013-01-14 31 views

回答

8

我認爲這是你所需要的

- (void)viewDidLoad 
{ 
    [super viewDidLoad]; 
    self.mapView.showsUserLocation=YES; 
    self.mapView.delegate = self; 
    [self.mapView setUserTrackingMode:MKUserTrackingModeFollow animated:YES]; 
    //some code 
} 
0

[MapView的setUserTrackingMode:MKUserTrackingModeFollow];

0

這應該做你在找什麼

MKCoordinateRegion region; 

    region = (MKCoordinateRegion){(current user location).location.coordinate, (current user location).locationCoordinateSpan};   
    [theMapView setRegion:region animated:NO/YES]; 
相關問題