Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

back button don't get change color in navigation bar

Sorry for bad english:-(
Here i am using xcode 5 and ios7, Can dnt change color in back button when get after pushviewcontroller.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
        ListViewController *viewList = [[ListViewController alloc] initWithNibName:@“ListViewController” bundle:nil];
        [self.navigationController pushViewController: viewList animated:YES];
}

User presses a cell then ListViewController will appear. In Navigation bar, Right bar button appeared pink color. but did not get change color in back bar button. Please see screen shoot i have attached link below.

enter image description here

Can we change color back button in navigation bar?. Or Should add image in back button?

like image 553
Taj rajan Avatar asked Feb 08 '14 04:02

Taj rajan


People also ask

How do I change my navigation bar background?

In order to change the hub navigation bar color, we can go to site settings of hub site>Change the look>under the header section>Background> select a theme color to change the background color of your site header.

How do I change the navigation button color in Swift?

“change back button color swift” Code Answer'sself. view. backgroundColor = . black / .


1 Answers

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
        ListViewController *viewList = [[ListViewController alloc] initWithNibName:@“ListViewController” bundle:nil];
        self.navigationController.navigationBar.tintColor=[UIColor readcolor]; //set color as you want…..
        [self.navigationController pushViewController: viewList animated:YES];
}

Try it... Happy code :-)

like image 192
Nag Raja Avatar answered Sep 23 '22 20:09

Nag Raja