Turn off or turn on arc

Source: Internet
Author: User
 Xcode5之后创建项目,默认会自动开启ARC自动引用计数机制,但我们在实际应用开发中考虑到种种原因,有时候不得不关闭(开启)整个应用或部分类的ARC。

The steps are:
Apple LLVM 6.0-language-objective C, objective-c Automatic Reference counting set N, Project-Build settings O To turn off the entire arc, set Yes to on.
Sometimes when we introduce a third-party class library, because the third-party class library does not support arc, you need to close the arc of the class library separately, in the following steps:
1.project-build Phases-compile Sources

2. Locate the mm file you want to set, and change the-fobjc-arc to-fno-objc-arc in the right compiler flag.

After the save is OK.

Turn off or turn on 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.