Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

how do you post back data entered on a modal view?

  • i read the new values on the viewWillAppear event of the parent view controller

    Votes: 0 0.0%
  • i post a notification back to the parent view

    Votes: 0 0.0%
  • i use variables a the app delegate level

    Votes: 0 0.0%
  • i have another method

    Votes: 1 50.0%
  • i have no idea what youre talking about

    Votes: 1 50.0%

  • Total voters
    2

drivefast

macrumors regular
Original poster
Mar 13, 2008
128
0
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).
 

psychaosx

macrumors newbie
Mar 3, 2008
8
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.