Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Erica Sadun authored and Erica Sadun committed Sep 15, 2009
1 parent cc59e59 commit ac497b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion C17-CoreLocation/09-Geocoding/main.m
Expand Up @@ -14,7 +14,7 @@


#define COOKBOOK_PURPLE_COLOR [UIColor colorWithRed:0.20392f green:0.19607f blue:0.61176f alpha:1.0f] #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 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 LOCATIONS [NSArray arrayWithObjects:@"White House", @"Big Chicken", @"LA Zoo", @"Big Hot Dog", @"Ray's Donuts", nil]
#define PIC_SIZE 32.0f #define PIC_SIZE 32.0f


Expand Down Expand Up @@ -126,6 +126,7 @@ - (void) findme
} }


whichItem = (whichItem + 1) % [LOCATIONS count]; whichItem = (whichItem + 1) % [LOCATIONS count];
whichLocation = [LOCATIONS objectAtIndex:whichItem];
self.navigationItem.rightBarButtonItem = BARBUTTON(whichLocation, @selector(findme)); self.navigationItem.rightBarButtonItem = BARBUTTON(whichLocation, @selector(findme));
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO; [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
} }
Expand Down

0 comments on commit ac497b4

Please sign in to comment.