Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small bug fix

  • Loading branch information...
commit ac497b41a2330ded5cb8b0e0b0fd7ebe49bf8d45 1 parent cc59e59
Erica Sadun authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  C17-CoreLocation/09-Geocoding/main.m
3  C17-CoreLocation/09-Geocoding/main.m
@@ -14,7 +14,7 @@
#define COOKBOOK_PURPLE_COLOR [UIColor colorWithRed:0.20392f green:0.19607f blue:0.61176f alpha:1.0f]
#define BARBUTTON(TITLE, SELECTOR) [[[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:self action:SELECTOR] autorelease]
-#define API_KEY @"YOUR YAHOO API KEY HERE" // please use your own API key, not mine
+#define API_KEY @"YOUR API KEY HERE" // please use your own API key, not mine
#define LOCATIONS [NSArray arrayWithObjects:@"White House", @"Big Chicken", @"LA Zoo", @"Big Hot Dog", @"Ray's Donuts", nil]
#define PIC_SIZE 32.0f
@@ -126,6 +126,7 @@ - (void) findme
whichItem = (whichItem + 1) % [LOCATIONS count];
+ whichLocation = [LOCATIONS objectAtIndex:whichItem];
self.navigationItem.rightBarButtonItem = BARBUTTON(whichLocation, @selector(findme));
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
Please sign in to comment.
Something went wrong with that request. Please try again.