I searched, but didn’t find good answer to this:
It should be pretty straightforward, I navigate from a parent TableView to a child TableView that implements only the selection option for a cell in parent View.
In childTableView, I would like to pass back the value chosen by user in child view (selection one of the cell in this view) to parent view and update the “cell.detailTextLabel.text” in parent view, I can find when the back button in child view got tapped but cannot find how/where to update the cell in parent view with new value got from child view’s cell.
My second question is how to pass the data to parent view.
Try the following
In child view, define a protocol
Send data when user selects a cell
In mainViewController, implement this protocol
// don’t forget to set the delegate when you create the childViewController
Hope it helps.