Guest User

Untitled

a guest
Aug 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
  2. MKCoordinateRegion region;
  3. region.center.latitude = self.mapView.userLocation.location.coordinate.latitude;
  4. region.center.longitude = self.mapView.userLocation.location.coordinate.longitude;
  5. region.span.latitudeDelta = 0.2;
  6. region.span.longitudeDelta = 0.2;
  7. [self.mapView setRegion:region animated:YES];
  8. [self.mapView.userLocation setTitle:@”Current Location”];
  9. return nil;
  10. }
Add Comment
Please, Sign In to add comment