Does removeObject release the object in an NSMutableArray of objects?

前端 未结 4 998
春和景丽
春和景丽 2021-02-16 00:29

I was wondering when you remove an object using removeObject in an array if that removed object is handled properly. Would the object being removed be released?

4条回答
  •  误落风尘
    2021-02-16 00:47

    Yes. Collections retain values they collect when the values are added to the collection, which means that the values are released when they're removed from the collection.

提交回复
热议问题