I created a toolbar in IB with several buttons. I would like to be able to hide/show one of the buttons depending on the state of the data in the main window.
In case the UIBarButtonItem has an image instead of the text in it you can do this to hide it:
navigationBar.topItem.rightBarButtonItem.customView.alpha = 0.0;