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.
Can we change color back button in navigation bar?. Or Should add image in back button?
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.
“change back button color swift” Code Answer'sself. view. backgroundColor = . black / .
- (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 :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With