views:

1488

answers:

1

Which method would you recommend to pass data from a child view back to it's parent view?

+4  A: 

There are a number of ways to do this.

  • Set a member variable in the child when its added to the parent
  • Send a message to [self superview]
  • Use an NSNotification
  • There are others, too, of course, but these are the three I use most often.

    Ben Gottlieb
    Thanks, Ben. I'll read up on those.
    matt