`
简单的茶
  • 浏览: 87692 次
  • 性别: Icon_minigender_2
  • 来自: 昆明
社区版块
存档分类
最新评论

How to know whether a project uses ARC

    博客分类:
  • iOS
 
阅读更多
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:
     [[[NSObject alloc] init] ]autorelease];

   If U get an error :ARC forbids explicit message send of 'autorelease'
   then, U R using ARC.
   
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics