摘要:
在iOS应用中,每个程序得main函数中都调用了UIApplicationMain函数。123456intmain(intargc,char*argv[]){@autoreleasepool{returnUIApplicationMain(argc,argv,nil,NSStringFromClass([AppDelegateclass]));}}先来看看UIApplicationMain函数的原型:123456intUIApplicationMain(intargc,char*argv[],NSString*principalClassName,NSString*delegateClassN 阅读全文