I’m trying to understand why my application is not leaving main ( launching).
I think this line is the cause.
int retVal = UIApplicationMain(argc, argv, nil , nil);
The source code:
#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;
}
That’s right – it won’t return!
according to the Apple docs