ITeye博客

How to know whether a project uses ARC

简单的茶 · 2013-12-17 11:17 · iOS · 移动开发 · Markdown

There are 2 method to check whether a project is using ARC.

  1. Select the project, open Build Settings. Look for Objective-C Automatic Reference Counting in the Apple LLVM Compile - Language section.

  2. Try sth like this in code: init] ]autorelease];

    If U get an error :ARC forbids explicit message send of 'autorelease' then, U R using ARC.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。