var toolBar: UIToolbar!
let nextBarButton = UIBarButtonItem(title: "Next", style: .Plain, target: self, action: "nextButtonPressed")
self.toolBar.setItems([nextBarButton], animated: true)
How to hide nextButton in ToolBar? I used the following code and it did not work.
self.toolbar.items.indexOf(1).hidden = true