How to Set Up ARC in the new version of Xcode and the new version of arc in xcode

Source: Internet
Author: User

How to Set Up ARC in the new version of Xcode and the new version of arc in xcode
When you are just learning IOS development, it is best not to enable ARC to help you learn memory management. However, many users who are new to Xcode may find that when you use the latest version of Xcode, an error is reported when you type the Code such as release. This is because the system uses automatic memory management by default. The following describes how to set this ARC.

Note: after IOS 5.0 and xcode4.2

// ARC (auto reference count)-Automatic reference count,

// The Compiler automatically calculates the reference counter for us. The editor will know when to perform [stu release],

// Student * stu = [[Student alloc] init] autorelease]; tool/Raw Material
  • Latest Version of Xcode

Method/step
1. Now, xcode version 5.1.1 Member of my iMAC. a new Project, you can't Release Memory directorily.

Related Article

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.