My class has an NSArray that is filled with objects. In my dealloc method, can I simply call release on my NSArray, or do I need to iterate the array and release all objects first?
You can call release directly on the NSArray. The implementation of NSArray will take care of sending release to all the objects stored in the array.
NSArray
release
2.1m questions
2.1m answers
60 comments
57.0k users