我想了解爲什麼我的應用程序沒有離開主體(啓動)。 我認爲這條線是原因。我的代碼沒有離開主體
int retVal = UIApplicationMain(argc, argv, nil , nil);
的源代碼:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[])
{
printf("I'm in main");
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
printf("\nafter the autiorealeas pool");
int retVal = UIApplicationMain(argc, argv, nil , nil);
printf("\nbefore the [pool relase] call");
[pool release];
printf("Leaving main");
return retVal;
}
別擔心!這就是它應該是... :) – 2011-05-16 05:31:48