I believe the best solution for this is to use NSHashTable or NSMapTable. the Key or/and the Value can be weak. You can read more about it here: http://nshipster.com/nshashtable-and-nsmaptable/
↧
Answer by Yaniv De Ridder for NSArray of weak references (__unsafe_unretained) to objects under ARC
↧