sol
sol

Reputation: 6462

iphone - pushing view controller onto the stack hides bar button items in the nav bar

I have a nav bar with bar button items on the left and right of the title. When I push a new view controller onto the stack, the bar buttons on the left get replaced by a "back" button, and the bar buttons on the right disappear altogether. How can you override this behavior and keep the bar buttons from going away?

Upvotes: 0

Views: 629

Answers (1)

Stefan Arentz
Stefan Arentz

Reputation: 34945

The bar buttons are connected to the view controller that is currently shown. So if you want those buttons to appear when another view controller is pushed then you will have to set them up in the same manner as you did for the first one.

Upvotes: 1

Related Questions