What is arc

Source: Internet
Author: User

ARC is the automatic reference calculation. English name automatic Reference counting.
In the beginning of iOS development, memory management is the need to manually, a reference to a resource, the reference to its calculation +1, when no longer used on-1, when the calculation of 0, there is no object reference to this resource, it can be freed. Later, people feel that this is not possible, what should be done automatically to do these things, of course, this is arc, will help you to add some of these +1-1 statements. Of course, this thing is the machine to do things, sometimes there will be less demand, after all, not a garbage collection mechanism. A memory leak occurs if you are not aware of it.

In fact, it automatically helps you insert some release code.

What is arc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.