I have a very simple scenario:
My iPhone application contains a UIViewController
implementation which displays a list of items. In its navigation bar there is a button for adding items to that list. When this button is clicked, a new UIViewController
is instantiated and presented on the screen using:
[self presentModalViewController:controller animated:YES];
This controller contains views that take user input for a new item in the list. After the user is done entering information, he clicks the "Done" button.
The "Done" button should take all entered information and return it to the first controller (the one displaying the list). The first controller could then add an item to its list based on the information that was just entered.
My question is: How do I send back the information from the second controller to the first controller in a nice fashion?