Quote:
Originally Posted by lynngobin
Is this what you're looking for?
Code:
UIImage *navBarImage = [UIImage imageNamed:@"navigationbar"];
UIColor *navBarTint = [UIColor colorWithRed:191/256.0 green:0/256.0 blue:8/256.0 alpha:1.0];
ViewController *viewController = [[ViewController alloc] initWithNibName:@"View" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
UINavigationBar *navBar = [navigationController navigationBar];
[navBar setBackgroundImage:navBarImage forBarMetrics:UIBarMetricsDefault];
[navBar setTintColor:navBarTint];
|
Kind of. First of all, is it the new code for iOS 5? It looks different than the code from the other user. I just need the navBarImage but will this change the toolbar on the iPad as well as the iPhone since my app is universal? Last thing, do I post this code in the App Delegate like before or in each individual *.h and *.m?