摘要:
简单的说,每次事件处理时候开始的时候,ios会为我们自动生成一个autorelesepool,,结束的时候释放掉。之前我们有误解是只有在main程序中有一个autoreleasepool,我们代码中所有autorelease对象都在这个pool中,这个观点是不正确的。You have to understand the concept of a run-loop. The run loop in iOS waits for some event to happen and then it acts upon it. That event could be the user touching t 阅读全文