My question is almost identical to the one found here : How to call viewDidLoad after [self dismissModalViewControllerAnimated:YES];
and I'm pretty sure the answer is exactly what I need too. I have a ViewController (let's call it A) has a list of tasks. When you click on a task in the table view in A, it brings up another ViewController (B) modally. When I'm done with the task on B, I want to go back to A by calling dismissViewController, but how do I reload the table?
The table is being fed data from a REST API so I don't think just deleting that row is going to work. I am going to need to call the REST API to get the list of tasks and then reload the table view.
I am not very knowledgable in Obj C so I'm having trouble translating this. This is what I think needs to be done.
Make protocol for B ViewController delegate. Make A ViewController a delegate of BViewController and fill out that protocol.
My question is how does B ViewController and B ViewController Delegate link up? In the B ViewController is there a way to say that this action happened so that A knows it did?