@iPhoneGuy: your code only works if I change it from this
Code:
self.navigationItem.backBarButtonItem = backButton;
to this
Code:
self.navigationItem.leftBarButtonItem = backButton;
However, doing what you've said negates the actual action that it originally had. That, of course, can be fixed by changing the action. However, I know that there has to be a way to do this. I'll describe how my program works before asking any more questions. In my program I have two view controllers, rootViewController and addToListViewController. RootViewController is the primary view and its view is automatically added as a subview to the main window when the program loads. When you tap the right bar button, the app delegate loads the AddToListViewController and pushes its view onto the view controller stack, so the back button that I'm trying to change the text of is one that is automatically generated by the push method. I don't have any problem changing any of the button attributes by setting any of the properties of self.navigationItem. However, from the AddToListViewController's implementation, nothing works with regards to the back button.
I've tried setting the title with self.navigationItem.backBarButtonItem.title as well as calling setNeedsRedisplay on the navigationItem's view after changing the title....so far no luck.