View Full Version : howto: collect data with a modal view
Jan 20, 2009, 10:33 PM
i'm pretty sure this is a common situation: you use one view to display data, and you open a modal view to allow the user edit the data. i can think of a few ways to communicate the fresh data back to the original view (view controller) once the editing is done; i was just curious which one do you use (if any).
Jan 20, 2009, 11:09 PM
I would put a method in the app delegate to handle it, simply because the app delegate is the only object I know how to easily access through UIApplication's sharedApplication, and from there it is easy to hook the delegate up to any other object.
Jan 21, 2009, 10:29 AM
A common theme for me lately - use a Singleton object to hold shared data