Browse files

small bug fix

  • Loading branch information...
1 parent 6a104ed commit cc59e59695eb46ccd4f9b535de9b0d12dfe36e39 Erica Sadun committed Sep 15, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 C17-CoreLocation/09-Geocoding/main.m
View
4 C17-CoreLocation/09-Geocoding/main.m
@@ -30,7 +30,7 @@ @implementation TestBedViewController
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
MapAnnotation *annotation = view.annotation;
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:annotation.subtitle]];
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:annotation.urlstring]];
}
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
@@ -126,7 +126,7 @@ - (void) findme
}
whichItem = (whichItem + 1) % [LOCATIONS count];
- self.navigationItem.rightBarButtonItem = BARBUTTON([LOCATIONS objectAtIndex:whichItem], @selector(findme));
+ self.navigationItem.rightBarButtonItem = BARBUTTON(whichLocation, @selector(findme));
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}

0 comments on commit cc59e59

Please sign in to comment.