0

would you tell me,, what steps i have to add in applications to move values from a view to another when press a button

skaffman
  • 398,947
  • 96
  • 818
  • 769

2 Answers2

0

You can use The NSNotificationCenter which implements the Observer pattern. You have one view that listens for an event and the other view notifies any listeners when the event is triggered, in your case the button pressed.

This SO response has good information on it.

What is NSNotification?

Community
  • 1
  • 1
Steve
  • 1,201
  • 8
  • 14
0

In addition to notifications and delegates, you can always do the quick and dirty method of passing a self class reference forward from one view to the next, and use the previous view class reference in your current view. Please see my blog post about this:

http://www.dosomethinghere.com/2009/10/04/passing-values-and-messages-between-views-on-iphone/

BP.
  • 10,033
  • 4
  • 34
  • 53