I need to add two bar button items to each end of my custom navigation bar in Swift. I\'m using the following method, and although I get no errors, nothing at all is ap
My solution to do it:
var barButton : UIBarButtonItem? override func viewDidLoad() { self.barButton = UIBarButtonItem(title: "Options", style: .plain, target: self, action: nil)) self.navigationItem.rightBarButtonItems = [barButton] as? [UIBarButtonItem] }