[UIBarButtonItem appearance]
is a proxy used to globally set appearance settings
You should use self.navigationItem.backBarButtonItem
to set the image for a given view controller
Question
Consider the following scenario:
Is it possible to make the back-button listen to a list and change once it has one or more elements?
I have tried
[UIBarButtonItem appearance] setBackButtonBackgroundImage;
But that changes the back-button in the whole application… and I only want it changed in the current view.
Solution
[UIBarButtonItem appearance]
is a proxy used to globally set appearance settings
You should use self.navigationItem.backBarButtonItem
to set the image for a given view controller