【发布时间】:2012-01-14 16:59:09
【问题描述】:
知道为什么我会收到这些消息:
NSAutoreleasePool 不可用:在自动引用中不可用 计数模式
ARC 禁止发送“release”的显式消息
在这段代码中:
#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;
}
【问题讨论】: