0
請問任何人都可以解釋並幫助我如何解決這個警告? thx提前。警告:本地聲明的'mapView'隱藏實例變量
-(void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated {
mapRegion=mapView.region; //first warning
}
-(void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated {
newRegion=mapView.region; //second warning
if(mapRegion.span.latitudeDelta>newRegion.span.latitudeDelta||mapRegion.span.longitudeDelta>newRegion.span.longitudeDelta)
shouldAdjustZoom=NO;
}