2011-04-10 162 views

回答

1

在您的调用方法

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

的开始和结束时补充一点:

[pool release];

检查Apple的文档约NSAutoReleasePool秒。

+0

好吧,我确实添加了NSAutoReleasePool,但是得到这样的消息列表:__NSAutoreleaseNoPool():类UILayoutContainerView的对象0x1526d0 autoreleased没有到位的池 - 只是漏水 – taxman 2011-04-10 14:04:22

+0

然后不正确。邮政编码。 – ssteinberg 2011-04-10 14:23:11

+0

您是否在使用'performSelectorInBackground'调用的方法中添加了它(不在调用者中)? – pt2ph8 2011-04-10 14:24:24