我想将我的应用程序转换为ARC.我可以将Objective-C Automatic Reference Counting更改为YES,但这不会自动删除release s retain s等.
I want to transition my App to ARC. I can change Objective-C Automatic Reference Counting to YES but that does not automatically remove releases retains etc.
过渡到ARC发行说明状态:
Xcode拥有一个新工具,该工具可以自动执行ARC转换的机械部分(例如删除保留和释放调用),并可以帮助您解决迁移器无法自动处理的问题.迁移工具将项目中的所有文件转换为使用ARC.如果您更方便地对某些文件使用手动引用计数,则还可以选择按文件使用ARC.
Xcode has a new tool that automates the mechanical parts of the ARC conversion (such as removing retain and release calls) and helps you to fix issues the migrator can’t handle automatically. The migration tool converts all files in a project to use ARC. You can also choose to use ARC on a per-file basis if it’s more convenient for you to use manual reference counting for some files.
如何在Xcode中调用此工具?
How do I invoke this tool in Xcode?
推荐答案哦,我刚刚找到了它:
转换> 到Objective-C ARC
我首先在找不到Xcode的帮助的情况下签入.
I checked in Xcode's help first where I could not find it.
更多推荐
过渡到ARC的工具
发布评论