iphone - Does a collection send a -release message to all objects it holds, if I send it an -release? -
I'm reading that if a collection is "released" it also releases all the items, on the other hand, It was also reading that as soon as the archive is stored, an archive will be stored.
But the last thing is not always the same, as apples are called. The system determines whether it is good to fix it or not, in most cases it will happen, but not in some cases.
So I'm thinking that a collection can cause memory leaks in this way? And when it does - thank you again for all the things on your message-message for the archive, then in fact all the items inside the collection should be gathered - as soon as I am in the archive collection.
Help me get a clear picture about that thank you!
When you add an object to a collection, it is maintained until the archive That it is not removed or the collection has been canceled, after the release or release of the messages sent for storage, there is no change in the number of objects within the archive.
In other words, instead of counting it, think in terms of ownership.
Comments
Post a Comment