I have an mkmapview that I am currently adding a pin, but for some reason when I [mapView SetRegion]: [DetailItem coordinateRegion] Animated: Yes];
Pin is on the off-center map (on the right side of the screen). is the code for [deailItem coordinateRegion]
:
- (MKCoordinateRegion) coordinate reagulation {MKCoordinateRegion area = {{0.0, 0.0}, {0.0, 0.0}}; Region.center = self.coordinate; Region.span.longitudeDelta = 0.0075f; Region.span.latitudeDelta = 0.0075f; Return (area); }
I am setting the center of the coordinate area for the X, Y coordinates of the object, so why is the off-center on the map? I think there is something that I'm missing here ...
:: Val ::
MKMapView
is your limit? After you select the annotation ( [mapView select annotation: annotation animated: yes];
), you should not have to do anything.
It may be that MKMapView
is larger than the area of your actual viewing map is centered, but the view is not visible.
Comments
Post a Comment