I have this:
MyTableViewController
(inherits fromUITableViewController
)- It has a dynamic tableview with a few cells (foo, bar, qux)
- It has a dynamic tableview with a few cells (foo, bar, qux)
MyViewController
(inherits fromUIViewController
)- There are some "show" segues from this controller to other view controllers
- It has a UIContainerView that embeds MyTableViewController
A picture speaks a thousand words:
When a certain cell is selected, I want to perform a segue of the parent view (MyViewController
)
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
if (indexPath.section == 1 && indexPath.row == 1) {
self.WHAT.performSegueWithIdentifier("someShowSegue1", sender: self)
}
}
Is it possible? what should I use in «WHAT»
?