I’m making an application on UITableView and I want to make a function, when I click on a cell, I open another view controller, on which there will be a back button, I want that when I click on this button, the newly opened controller closes, and returns me to that the controller from which it was opened, how to do it?
This code is for creating a new controller when clicking on a cell (without the function to open the controller, because I don’t know yet with which method I can implement this)
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let vc = createVC(rootVC: AboutRecipeViewController(), TBImageName: nil, TBTitle: recipes[indexPath.row].recipeName)
}