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