By using autorelease, you are making the object to be placed ion autorelease pool.
Yes, if you are not doing memory management on your own and
NO, if you are doing memory management on your own.
Quote:
|
Why do I have to write autorelease there?
|
No compulsion to write. Please refer the above two questions.
Please refer the above questions.
Quote:
|
When do I know I should call autorelease?
|
It depends on you. Please refer the above questions.