Search code examples
iphoneios4uinavigationcontroller

How to pass information between views


I want to pass information like number between two views in navigation controller. But I don't know how.

Thanks


Solution

  • Another option might be using singletons if the "numbers" are just a synonym for your application model. Remember, you should use the MVC-concept!

    http://cocoawithlove.com/2008/11/singletons-appdelegates-and-top-level.html

    Try the SynthesizeSingleton.h macro if you want a tough solution!