I have a UINavigationController (with a UITableView) inside of a UIPopoverController. When I select a row in the table view I push to a new UIViewController. This view has a navigation bar with a back button. Inside the view there is a button. When I touch this button I want the back button to change color. This needs to work in iOS 6. Is this possible without creating a custom button?
Here is what I have tried:
- (IBAction)changeColor:(id)sender
{
self.navigationItem.backBarButtonItem.tintColor = [UIColor redColor];
[[UIBarButtonItem appearance] setTintColor:[UIColor redColor]];
[[UINavigationBar appearance] setTintColor:[UIColor redColor]];
self.backButton.tintColor = [UIColor redColor]; // Created a UIBarButtonItem outlet and connected it in IB
}