….or should I learn to manage memory myself?
Is it OK to rely on the garbage collection feature of iOS 5?
I’m new and I’m thinking about learning iOS soon.
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.
iOS doesn’t have garbage collection; the iOS5 SDK introduced ARC (automatic reference counting), which is subtly different from real garbage collection. You’ll still need to know and understand the semantics of reference counting, as avoiding memory leaks by not using strong reference cycles etc. is still your responsibility, even with ARC. But by all means, go ahead and use ARC, it does make most code simpler.