Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
- MKCoordinateRegion region;
- region.center.latitude = self.mapView.userLocation.location.coordinate.latitude;
- region.center.longitude = self.mapView.userLocation.location.coordinate.longitude;
- region.span.latitudeDelta = 0.2;
- region.span.longitudeDelta = 0.2;
- [self.mapView setRegion:region animated:YES];
- [self.mapView.userLocation setTitle:@”Current Location”];
- return nil;
- }
Add Comment
Please, Sign In to add comment