I’d like to know when to use copy, retain or assign when declaring a property.
Also, why is nonatomic used when declaring a property?
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.
Have you read the Memory Management Guide? The answers are all in there.
This may sound like a flippant response; but the answers are in the docs. The answers you get here will just be a summary of the documentation, and you will lose the pleasure of learning about memory management for yourself, and you will get vital practice in reading Apple Documentation which will help you as your learning progresses.