NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[ pool release ]
本文介绍了NSAutoreleasePool的使用方法,通过实例演示了如何创建并释放NSAutoreleasePool对象,这对于理解Objective-C内存管理非常关键。
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[ pool release ]