Thursday, December 26, 2013

dealloc must rewrite it?

I think there are some code, and some code no.


What happens rewrite?
Reply:
Do you have something they want, when released
Reply:
My understanding is not:

When my composite technology, when a class contains other objects,

Then it must dealloc??



cited a floor arthurchenjs reply:
you have something they have to release it

Reply:
dealloc function is generally not recommended to rewrite
Each object in the dealloc method you need to release only need to release out here can be
Reply:
Application should release their own memory, rewrite dealloc, you need to release with the release added on it
Reply:
Naturally be rewritten.

Reply:
references, 4th Floor dansley reply:
own application must release the memory, rewrite dealloc, you need to release with the release added on it


Thank complex when natural application memory. So rewriting.
Reply:
Landlord understand? Can elaborate on that? Also, you said composite mean?, Composite classes?
Reply:
reference to the 7th floor zsx923 reply:
landlord to explain in detail you can see there, you say what is the meaning of complex composite class??? ?
Yes, it is a composite class,


Reply:
reference to the 8th floor qiuruonan reply:
reference to the 7th floor zsx923 reply:

Landlord understand? Can elaborate on that? Also, you said composite mean? Composite class?
Yes, it is a composite class,



For example, class A contains class B, A class initialization function, object B will allocate memory, and initialization,

Finally, of course, responsible for dealloc, if not so, memory leaks, or allocate memory B when it is set to autorelease. . Avoiding the manual to release B it.

I do not know that's right, welcome to speak.

No comments:

Post a Comment