我的申请有两个类:exampleAppDelegate
和exampleController
。源文件的组织
我输入exampleController.h
为exampleAppDelegate.m
和exampleAppDelegate.h
为exampleController.m
。
当我尝试在exampleAppDelegate
类使用插座或行动从exampleController
类,编译器返回以下错误:
use undeclared identifier and action not found.
同样的问题,当我尝试在exampleController
使用变量从exampleAppDelegate
发生。
我在做什么错?
类名应以w /大写字母开头,顺便说一句。 – bbum 2011-06-14 17:49:02
[解决方案1](http://stackoverflow.com/questions/2228242/how-to-access-string-variable-in-one-view-controller-to-another-view-controller)[解决方案2](http ://解决方案3](http://stackoverflow.com/questions/) 1685964/how-to-pass-a-string-value-from-one-view-controller-to-another-view-controller)[解决方案4](http://stackoverflow.com/questions/6166376/how-do -i-access-a-variable-in-one-view-controller-from-another-view-controller)[解决方案5](http://stackoverflow.com/questions/3008967) – Aravindhan 2011-06-14 17:47:56