When you start learning iOS development, it's best not to turn on arc, which can help you learn memory management, but many friends who have just contacted Xcode may find that when you use the latest version of Xcode, you'll be prompted with an error when typing in code such as release. This is because the system uses automatic memory management by default, and below is a brief explanation of how to set up this arc.
Note: After IOS 5.0, after xcode4.2
ARC (auto reference count)-Auto reference count,
The compiler automatically helps us calculate the reference counter, and the editor will know when to do [Stu release],
Student *stu=[[[student alloc] init]autorelease]; Tools/Materials
Method/Step
1. Now,xcode version 5.1.1 Member of my IMAC. A new project,you can ' t Release Memory directorily.
2. Find the Title of this Project left,center Infomation->levels->arc search ... find the Flag->yes turn to NO. . Ok!
3, Now,you can Release Memory on the You Xcode version 5.1.1 member. Attention Please:way for other Version on Xcode.
EDITOR:WVQUSRTG 2014-11-20;
How does the new version of Xcode set up arc