Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

suksmo

macrumors member
Original poster
May 4, 2010
33
0
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
all sorted now - here's the answer courtesy of the nice guys at iphonedevsdk.com :-

Code:
if([self.navigationItem.title isEqualToString:@"pizza"]){
NSLog(@"Pizzaaaaaaaaaaa");
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.