I'm using a table view with a number of specific rows that allows changing to other screens of the project, however when I switch to another storyboard the navigation controller does not allow me to return.
my code is as follows:
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
{
switch indexPath.row {
case 0:
let storyboard = UIStoryboard(name: "Product", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "ProductViewController") as UIViewController
present(vc, animated: true, completion: nil)
break
default: break
}
}
This allows me to see the viewboard of the other storyboard, I would like to keep the navigation controller.
I managed to do this through the storyboard reference, although I could not assign the changes depending on the cell touched.
Any ideas?