你能指出我这段代码有什么问题吗?
-(void) showStoreRegion:(NSInteger)idx
{
//StoreLocation* store = [self.listStore objectAtIndex:idx];
//self.coordinate = CLLocationCoordinate2DMake(store.latitude,store.longitude);
self.coordinate = CLLocationCoordinate2DMake(10.7500,106.6667);
MKCoordinateRegion region;
MKCoordinateSpan span;
span.latitudeDelta = 0.001;
span.longitudeDelta = 0.001;
region.span = span;
region.center = self.coordinate;
[theMapView setRegion:region animated:TRUE];
[theMapView regionThatFits:region];
[self addAnns];
}
运行此代码/