1

如果我将一个对象放入 NSDictionary 中,会有一个指向它的强指针吗?我只是想确保它在我仍然需要它时不会被删除(使用 ARC)。

4

1 回答 1

5

No they wont get deleted. Dictionaries and arrays retain your objects and release them as soon as they are themselves released or the objects are removed from them.

于 2012-05-22T13:50:02.000 回答