Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在视图控制器中,我异步执行了很多 NSMutableRequest 调用。在回调方法中,我正在处理响应。这些所有请求都是自动释放的。在这里,我想知道如何使用 NSAutoReleasePool 来释放这些自动释放的对象。你能澄清一下吗?
提前致谢。
Autoreleased 对象意味着它正在为您释放(auto代表self拉丁语(我认为))。这些对象的释放由文件NSAutoreleasePool中的函数管理。如果您没有明确地对它们进行ing 或ing,则无需执行任何操作。main.mmainretaincopy
auto
self
NSAutoreleasePool
main.m
main
retain
copy