I noticed that in Xcode 4.2 there is another way to run the main function:
int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([PlistAppDelegate class])); } }
and
int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; }
Does anyone know the difference between the two?
ios xcode nsautoreleasepool autorelease
Foo Jan 03 2018-12-01T00: 00Z
source share