I'm working on an app where a viewController is embebed in navigationBar and this navigationBar is embebed in TabBarViewController.
In my app I have 2 different tabs (for the moment), one tab is the "Activity view". This is a viewController with a tableView where list activities. Every cell will show the same view controller showing detail activity when it's touched.
My problem is that not showing navigationItem with buttons.
I'm trying the solution of: Bar button item not shown in navigationBar , because my problem is very similar but it did not work.
some screenshots of storyboard and app running: storyboard App running without buttons
I'm trying programmatically add buttons but no results:
var logoutButton: UIBarButtonItem!
var filterButton: UIBarButtonItem!
//MARK: - Lyfe cycle
override func viewDidLoad() {
super.viewDidLoad()
let logoutImage = UIImage(named: "logout-24")
let filterImage = UIImage(named: "filterOutline-24")
logoutButton = UIBarButtonItem(image: logoutImage, style: .Plain, target: self, action: "logoutAction:")
filterButton = UIBarButtonItem(image: filterImage, style: .Plain, target: self, action: "filterAction:")
navigationItem.rightBarButtonItems = [filterButton, logoutButton]