I've been a lurker for some time on Stackoverflow, and here is my first iOS post.
I am implementing a UINavigationController programmatically and am using it for the default back buttons. The text that is on the back button is defaulted to the name of the title in the previous navigation bar's view, due to the stack.
I wish to change the text on the back button (left bar button) without creating a new UIBarButtonItem, so that I can avoid using a selector and instead use the stack that I have been using. I also wish to avoid creating a new button object, since there is one already inside the NavController.
Example: NavViewA titled A, advances to NavViewB titled B. The left bar button in NavViewB now says 'A', however, I wish it to say "Turtles".
How would I go about doing this?
If I do end up creating a new UIButtonItem and just using that with a selector that pops, will the default button in the NavController deallocate itself, or will it be taking up memory?
Thanks