What system does before launching iPhone app's main() function?

Posted by Eonil on Stack Overflow See other posts from Stack Overflow or by Eonil
Published on 2010-05-23T11:37:51Z Indexed on 2010/05/23 11:40 UTC
Read the original article Hit count: 254

Filed under:
|

My app takes too much time to loading. So I put a NSLog in main() function like this to measure loading time from first:

int main(int argc, char *argv[]) 
{    
    NSLog(@"main");

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
}

But, the log displayed at really later time. Default.png displayed about 5 seconds, all loading process completed in 1~2 seconds after log appeared.

What's happening before executing main() function on iPhone app?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about loading