I am trying to implement a custom UINavigationBar Image background for iOS 6 but I am having no luck. All it displays is the normal one from Apple (with no back button).
I have tried the following code within viewDidLoad (One at time):
[[UINavigationBar appearance] setBackgroundImage:myImage forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setBackgroundImage:myImage forBarMetrics:UIBarMetricsDefault];
I am presenting the desired view by:
optionViewController *choose= [[optionViewController alloc] initWithNibName:@"optionViewController" bundle:nil];
UINavigationController *aNavController = [[UINavigationController alloc] initWithRootViewController:choose];
[self presentViewController: aNavController animated:YES completion:nil];
Any help would be appreciated. Thanks!
you can set Navigation bar Custom image like this way:-
here’ is image:-
and in above image the
Backbutton is not the Default one, but it’s putting through programmatically.