How to know whether a project uses ARC
There are 2 method to check whether a project is using ARC.
-
Select the project, open Build Settings. Look for Objective-C Automatic Reference Counting in the Apple LLVM Compile - Language section.
-
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.