As noted above, @wcochran, when working with viewControllers pushed onto the navigation controller stack, the backBarButtonItem output is already connected and cannot be changed. In addition, selecting a child VC navigation element and changing the text of the back button in IB does not do what you expect.
Now you might think that replacing the child VC backBarButtonItem will solve the problem, but it is not. Confusingly, if you want to set the title of the back button of a child VC, you must set the title of the button back to your parent (!), For example:
- (void)viewWillAppear:(BOOL)animated
This will not do anything on the parent VC. In fact, if the parent is the RootViewController navigationController, there will be no back button at all. But the child inherits (or takes) the button you created back.
This only applies to the immediate child VC, so if you want to keep the shortcut down through the navigationController stack, you need to set it for each parent.
Thanks to @wiliz at #iphonedev for explaining this to me.
sumizome
source share