Possible Duplicate:
iPhone Navigation Bar Title text color
How do I set the title color of the navigation bar through code?
Possible Duplicate:
iPhone Navigation Bar Title text color
How do I set the title color of the navigation bar through code?
You need to use a UILabel as the titleView of the navigationItem. Set label background color as clear color and text color as according to your requirement. then set the titleview for navigation item to this label.
self.navigationItem.titleView = label;
You can use uinavigationbar's setTitleTextAttributes for setting the font, color, offset, and shadow color. this works for ios 5.
CGRect frame = CGRectMake(0, 0, 200, 44);
TitleLabel = [[[UILabel alloc] initWithFrame:frame] autorelease];
TitleLabel.backgroundColor = [UIColor clearColor];
TitleLabel.font = [UIFont boldSystemFontOfSize:14.0];
TitleLabel.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5];
TitleLabel.text = @"Nav Bar Title";
TitleLabel.textAlignment = UITextAlignmentCenter;
TitleLabel.textColor = [UIColor colorWithRed:1 green:2 blue:4 alpha:0.7];
self.navigationItem.titleView = TitleLabel.text;
You can take a UILabel, set its font, color alignment and add it on Navigation bar.
Hope it works for you.