Let's say that I have a navigation controller and I push a view controller.By doing this, a button that leads me back to the previous controller is created.
I've found the navigation item holding the button this way:
If I change it's title also the button title changes.
But the only button is backItem.rightBarButtonItem, even if the button is displayed at the left, the other two buttons (back and right) are nil.
If I try changing the button item this way:
The title of the button leading me back doesn't change, is that another button? How do I change the style of the button leading me back to the other view controller?
I've found the navigation item holding the button this way:
Code:
UINavigationItem* backItem=self.navigationController.navigationBar.topItem;
If I change it's title also the button title changes.
But the only button is backItem.rightBarButtonItem, even if the button is displayed at the left, the other two buttons (back and right) are nil.
If I try changing the button item this way:
Code:
backItem.rightBarButtonItem.style= UIBarButtonItemStylePlain;
The title of the button leading me back doesn't change, is that another button? How do I change the style of the button leading me back to the other view controller?