I am setting back button image on navigation bar for all the view controllers using the following code in Appdelegate:
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:image forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
Now in one of my view controllers i pick a newimage from the gallery and save it. I want that as soon as i save this newimage, the 'image' of back button gets replaced with this 'newimage'.
I tried following code in viewWillAppear of each and every view controller
[self.navigationItem.backBarButtonItem setBackButtonBackgroundImage:newimage forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
this too. But all in vain.
Image gets changed only when i run my app again and thus when code in Appdelegate gets called.