【发布时间】:2010-03-20 05:03:29
【问题描述】:
这是用于 iPhone 的 Xcode 中的 Objective-C。
我在 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 方法?
【问题讨论】:
标签: iphone objective-c xcode static boolean