I have an IBOutlet that I have linked to from the storyboard
@IBOutlet var creeLigueBouton: UIBarButtonItem!
and I want to make it disappea
For Swift 3
if (your_condition) { self.navigationItem.rightBarButtonItem = self.addAsset_btn } else { // hide your button self.navigationItem.rightBarButtonItem = nil }