views:

34

answers:

1

Hey.

I have an UINavigationController with a UIBarButton to realod something. However, when I push another view on the Navigation Controller, the BarButtonItem disappears. How can I avoid this? Do I need to add some code in the NavigationController, or set a property for the BarButtonItem?

Thank you.

+1  A: 

Add the button to every view controller. It'll still visibly crossfade between them (oh well).

I'm sure there are plenty of hacks you could do (like adding subviews directly to UINavigationBar) but that's likely to break between OS releases.

tc.
What do you mean?
Emil
Ah, I see what you mean. I wasn't aware that view-controllers had the `.navigationItem.rightBarButtonItem`-property. Thanks! :)
Emil