Reputation: 571
I have setup a UIViewController
(RootViewController) with two container views connected to two UITableViewController
s. 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)
How to setup different navigation bar buttons for each of those container view controllers?
Upvotes: 1
Views: 1021
Reputation: 6024
Did you push them on the UINavigation stack?
func pushViewController(ViewController, animated: true)
Upvotes: 0