1、項目的ARC設置:
法1:點擊項目導航文件--> 選中Targets--> 選擇 Build Settings-->找到並展開Apple LLVM compiler 3.0 -Language-->將Objective-C Automatic Reference Co...設置爲NO;
法2:點擊項目導航文件--> 選中Targets--> 選擇 Build Settings-->搜索“auto”-->展開Apple LLVM compiler 3.0 -Language-->將Objective-C Automatic Reference Co...設置爲YES/NO;
2、項目中類文件ARC屬性設置
點擊項目導航文件--> 選中Targets--> 選擇 Build Phases --> 展開Compile Sources
用-fno-objc-arc標記來禁用在ARC工程那些不支持ARC的文件的ARC