-1
A
回答
1
如果“数字”只是你的应用程序模型的同义词,另一种选择可能是使用单例。请记住,你应该使用MVC概念!
http://cocoawithlove.com/2008/11/singletons-appdelegates-and-top-level.html
尝试SynthesizeSingleton.h宏,如果你想有一个艰难的解决方案!
1
此问题已被[多次]询问(http://stackoverflow.com/questions/5010523/how-to-access-one-uiviewcontrollers-properties-from-another-uiviewcontroller)[before](http:/ StackOverflow上的/stackoverflow.com/questions/943929/how-to-pass-information-from-appdelegate-into-one-of-the-view-controllers-in-the)。 [看看周围](http://stackoverflow.com/questions/tagged/iphone)。 – Moshe 2011-05-29 14:17:55