ARC Autoreleased with no pool in place
问题 I am using ARC in my code and I am getting the error Object 0x781b8e0 of class __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug The line it breaks on is return UIApplicationMain(argc, argv, nil, NSStringFromClass([HomePageAppDelegate class])); Since I am using ARC I cannot put an NSAutoReleasePool around it like I usually would. What can I use in order to fix this error? 回答1: use this on the line where it showing the warning