Custom UIToolbar within UINavigationController's rightBarButtonItem disappears when popping back to view?

If it works in viewDidAppear you could try viewWillAppear. In general, I've never seen a UIToolbar set as a UIBarButtonItem, so I wouldn't necessarily expect standard behavior. Let me know how it goes.

Nope viewWillAppear doesn't work - the custom toolbar is there, but invisible. If I tap where the buttons were displayed, the functionality still works (i.e. The methods still get called).

– a1phanumeric Nov 19 '10 at 14:57 strange. Maybe on viewWillAppear you could call setNeedsDisplay on the toolbar... or even consider adding it in viewWillAppear and removing it in viewWillDisappear. – kevboh Nov 19 '10 at 15:46.

Apple UI APIs often fail in unusual ways when you try to do anything even slightly unusual (even things that should work), and trying to insert a UIToolbar into a rightBarButtonItem definitely falls into my definition of "unusual". What you really should be doing is hiding the navigation bar and adding the UIToolbar as a subview of your view controller's main view. Alternatively you could avoid UIToolbar completely and implement the buttons yourself in a custom view.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions