For code:
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
Apple doc clearly defines:
Return Value: Although an integer return type is specified, this function never returns. When users terminate the iPhone application by pressing the Home button, the application will exit immediately by calling the system exit function with an argument of zero.
Secondly, in
int UIApplicationMain (
int argc,
char *argv[],
NSString *principalClassName,
NSString *delegateClassName
);
how can we access argv from our subclass of UIApplication?
source
share