在哪里设置自动引用计数 - xcode 4.2
当我创建项目时,我选中了“使用自动引用计数”。现在,我想将其关闭,但找不到在哪里更改它。
还有一件事,是否建议对 iPad/iPhone 应用程序使用 ARC?
When I created my project, I checked the "Use Automatic Reference Counting" to on. Now, I'm thinking of turning it off but I can't find where to change it.
One more thing, is it advisable to use ARC for iPad/iPhone apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
打开项目文件。
在“构建设置”选项卡下搜索“Objective-C 自动引用计数”。
为其设置值。
是的,如果您想交付适用于 iOS 4.0 及更高版本的产品,您绝对可以使用 ARC。
Open the project file.
Under Build Settings tab search for "Objective-C Automatic Reference Counting".
Set the value for it.
Yes, sure if you want to deliver a product for iOS 4.0 and above you can definitely use ARC.
您可以通过单击导航器中的项目(左侧类似查找器的顶部项目)来关闭“使用自动引用计数”,单击您的目标,选择“构建设置”并关闭选项“目标- C自动引用计数”
如果程序员是新手,那么最好让他们手动完成,否则他的内存基础永远不会清晰,否则使用它就可以了。
You can turn off "Use Automatic Reference Counting" by clicking on your project in the navigator (the top item in the finder-like thing on the left) click on your target, select "Build Settings" and turn off the option "Objective-C Automatic Reference Counting"
If programmer is novice than it is good advice to let them do it manually , otherwise his memory fundamentals will be never clear , Otherwise it is just fine to use it.
进入Project Menu->Target->Build Settings->Objective-C Automatic Reference Counting,然后你可以在这里设置Yes或No。如果你是初学者并且你不能自己处理内存问题那么你可以启用 ARC。
Go to the Project Menu->Target->Build Settings->Objective-C Automatic Reference Counting, then you can set here Yes or No. if You are a beginner and You can't handle memory issue yourself then you can enable ARC.