0

I got 2 views in my app. view1 present view2. I can do it throught presentModalViewController or like this : self.navigationController pushViewController it dosent matter.

I need to select some row in view2 and then go to view1 with some information. How can i do it without singeltones and global variables?

Eugene Trapeznikov
  • 3,220
  • 6
  • 47
  • 74
  • 1
    This Post might be interesting for you: http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c – pmk Mar 06 '12 at 10:06

2 Answers2

2

You can post a notification using NSNotificationCenter. Then you'll use the NSDictionary *infos to pass your data.

NSNotificationCenter reference

Ganzolo
  • 1,394
  • 12
  • 23
2

1.You can use the NSUserDefaults

Tendulkar
  • 5,550
  • 2
  • 27
  • 53