-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