更新时间:2022-12-23 13:46:34
您已经有一个名为mapView的实例变量.
you have an instance variable with the name mapView already.
您可以将本地名称更改为其他名称.例如这样的
You can change the local name to something else. For example like this:
-(void)mapView:(MKMapView *)aMapView regionWillChangeAnimated:(BOOL)animated {
mapRegion=aMapView.region; //first warning
}
-(void)mapView:(MKMapView *)aMapView regionDidChangeAnimated:(BOOL)animated {
newRegion=aMapView.region; //second warning
if(mapRegion.span.latitudeDelta>newRegion.span.latitudeDelta||mapRegion.span.longitudeDelta>newRegion.span.longitudeDelta)
shouldAdjustZoom=NO;
}