xcode4.2开发入门

1.禁用 ARC (Automatic Reference Counting)

Project Info -> Apple LLVM compiler 3.0 - Language -> Objective-C Automatic Referencing Counting, 设置为NO即可。


xcode4.2开发入门_第1张图片

 

If you are using Xcode 4.2 or later, new projects are set to use Automatic Reference Counting

 

Automatic Reference Counting (ARC) is a compiler-level feature that simplifies the process of managing object lifetimes (memory management) in Cocoa applications. There’s no need to know any more about it now, but later you should read Programming With ARC Release Notes.

 

否则会出现如下的编译错误提示:

xcode4.2开发入门_第2张图片

 

你可能感兴趣的:(XCode4)