这是用于iPhone的Xcode中的Objective-C。如何在main.m中调用静态布尔方法
我在main.m文件的方法:
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
//I want to call the method here//
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
static BOOL do_it_all() {
//code here//
}
如何调用从main.m文件的do_it_all方法?
我确实有循环依赖。这些信息非常有帮助。谢谢。 在main.m中的工作似乎有点不同于标准的.h/.m文件。 – AaronG 2010-03-20 12:40:53