I have two UITableViewControllers. One displays a list of names and on tapping any cell will push the second TableViewController which enables the user to edit the name in a UITextField.
Now I am able to pass the name string from the first TableViewController to the second. (I’m doing this by creating a property in the second TableViewController which I’m setting just before pushing the second TableViewController) But how do I pass the edited name string from the second to the first (so that I can update the first table with the edited name)?
Create a mutable array property in the first controller, and pass that array and an index to the second controller.
FirstController.h
FirstController.m
SecondController.h
SecondController.m