suksmo macrumors member Original poster May 4, 2010 33 0 May 4, 2010 #1 I'm pretty new and have a major mental block at present around grabbing the title from a navigation bar. I'm looking to do something like this: if (title =@"pizza") {do something} Can someone help me with what I'm missing out doing?
I'm pretty new and have a major mental block at present around grabbing the title from a navigation bar. I'm looking to do something like this: if (title =@"pizza") {do something} Can someone help me with what I'm missing out doing?
suksmo macrumors member Original poster May 4, 2010 33 0 May 4, 2010 #2 all sorted now - here's the answer courtesy of the nice guys at iphonedevsdk.com :- Code: if([self.navigationItem.title isEqualToString:@"pizza"]){ NSLog(@"Pizzaaaaaaaaaaa"); }
all sorted now - here's the answer courtesy of the nice guys at iphonedevsdk.com :- Code: if([self.navigationItem.title isEqualToString:@"pizza"]){ NSLog(@"Pizzaaaaaaaaaaa"); }
dejo Moderator emeritus Sep 2, 2004 15,982 452 The Centennial State May 4, 2010 #3 suksmo said: ...courtesy of the nice guys at iphonedevsdk.com... Click to expand... Those guys are bastards. We're much nicer.
suksmo said: ...courtesy of the nice guys at iphonedevsdk.com... Click to expand... Those guys are bastards. We're much nicer.
suksmo macrumors member Original poster May 4, 2010 33 0 May 4, 2010 #4 dejo said: Those guys are bastards. We're much nicer. Click to expand... Playing for both teams seems productive!
dejo said: Those guys are bastards. We're much nicer. Click to expand... Playing for both teams seems productive!
dejo Moderator emeritus Sep 2, 2004 15,982 452 The Centennial State May 4, 2010 #5 suksmo said: Playing for both teams seems productive! Click to expand... Yeah, just joking was I. iPhone Dev SDK is a good source of info, as is Stack Overflow.
suksmo said: Playing for both teams seems productive! Click to expand... Yeah, just joking was I. iPhone Dev SDK is a good source of info, as is Stack Overflow.