Shyam
Shyam

Reputation: 571

Different Navigation Bar Button Items in different child viewcontrollers from two container views?

I have setup a UIViewController(RootViewController) with two container views connected to two UITableViewControllers. Each of the UITableViewController is selected based on the UISegmentedControl in the RootViewController.

I'm able to segue as I intended to, but the bar button items in the child controllers (UITableViewController) are not responding.

The navigation bar button items in the two child view controllers are different from each other.

Please find a screenshot of my storyboard. (Only one child controller displayed)

screenshot

How to setup different navigation bar buttons for each of those container view controllers?

Upvotes: 1

Views: 1021

Answers (1)

NonCreature0714
NonCreature0714

Reputation: 6024

Did you push them on the UINavigation stack?

 func pushViewController(ViewController, animated: true)

Upvotes: 0

Related Questions