本文为整理字网上的内容。
1. When an object is added to a collection, it will be owned by the collection.
2. When should you use retain
? When you want to prevent an object from being de-allocated before you use it.
3. The iPhone has an auto-release pool that runs on the main thread which usually releases objects at the end of an event loop. When you create your own threads, you must create your own auto-release pool.