Will An Associated Object Be Released Automatically?

前端 未结 4 1289
南笙
南笙 2020-12-12 17:40

Note: This other question seems relevant but it\'s not: When does an associated object get released?

I\'m adding a second description to a UIView instan

4条回答
  •  不思量自难忘°
    2020-12-12 18:12

    Yes. When an object is dealloc'd, any associated objects (that use the RETAIN or COPY association types) are automatically released.

提交回复
热议问题