自动释放对象和自动释放池(2)

来源:互联网 时间:1970-01-01

How does -autorelease work?

• Object is added to current autorelease pool

• Autorelease pools track objects scheduled to be released

■ When the pool itself is released, it sends -release to all its objects• UIKit automatically wraps a pool around every event dispatch

 

 

 

 

 

 

 

 

  


相关阅读:
Top