我是 iphone 应用程序开发的新手,我想知道为什么我们在 iphone 编程中不积极使用 main.m 文件。我在很多书中看到以下用法:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}