NSAutoreleasePool 用处

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

……

[pool release];

 

在main()函数当中,能够见到的这两条语句,主要是用来解放内存池,释放内存。

posted @ 2012-07-26 15:20  小龙酸菜  阅读(146)  评论(0编辑  收藏  举报