任何想法,爲什麼我得到的消息:爲什麼我看到消息警告NSAutoreleasePool不可用?
NSAutoreleasePool是不可用:自動參考 計數模式
ARC無法禁止「釋放」
的明確消息發送的驗證碼:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
你的答案在這裏:http://stackoverflow.com/questions/6655842/nsautoreleasepool-is-unavailable – samfisher 2012-01-14 17:02:20