Is there any garbage collector concept available in iOS?if yes please guide us how and it’s Recommended or not?
Is there any garbage collector concept available in iOS?if yes please guide us how
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.
There’s no garbage collector under iOS. Instead, simply use automatic reference counting (ARC). ARC will take care of most of the memory management for you without the runtime overhead of a garbage collector.
Note that although MacOS X does support garbage collection, GC will be deprecated in favor of ARC in MacOS X 10.8. So ARC is now the preferred solution even on the desktop.