I added (or show) a Toolbar on the Navigation Controller with the "Show Toolbar" checkbox in the Attributes Inspector in Xcode 6.2.
Because
The custom toolbar associated with the navigation controller. (read-only)
I'm using
self.navigationController?.setToolbarItems(items, animated: true)
to add my items to the toolbar (items is a NSArray) but the toolbar doesn't show up any items so far. To test a few things I tried to add a single UIBarButtomItem which is created this way:
testBarButtonItem = UIBarButtonItem(title: "testTitle", style: .Plain, target: nil, action: nil)
The code is inside the override func viewDidLoad() of a UIViewController.
I already debugged my code to find out if there is a nil around but neither the UIBarButtonItem nor the navigationController are nil.