过渡到ARC的工具 [英] Tool for transitioning to ARC

查看:60
本文介绍了过渡到ARC的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的应用程序转换为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.

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的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆