I want to pass information like number between two views in 开发者_开发百科navigation controller. But I don't know how.
Thanks
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!
You need to use delegates and protocols. Here is a site with an example http://iosdevelopertips.com/objective-c/the-basics-of-protocols-and-delegates.html
精彩评论