Q:

Update back button in navigationbar

if i change the title of the parentViewController, how do i update the back button displayed in the upper left corner of the child view. ?
i already know to set self.title when i am actually displaying the parent view, but i would like to know how to refresh the button with the new title displayed in the child view while i am looking at the child view. i have tried
self.parentViewController.title = @"foo"

and
self.parentViewController.navigationItem.title = @"foo"

A:

Try this:
self.parentViewController.navigationItem.backBarButtonItem.title = @"foo";

A:

What I ended up doing was implementing a delegate protocol. my child view tells the parent the new name and the parent sets its title. with self.title = @"foo"

