In Objective-C all objects can be released from memory using release function ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Objects are not necessarily cleared from memory when you call release. Also, it might be necessary to call special functions for Core Foundation objects (such as CGColorRef).
In general, you have to call one release or autorelease for every alloc, retain or copy call you make on an object.
For more details, see Apple’s memory management guide.