如何自动将手动保留释放代码转换为ARC? [英] How to automatically convert Manual Retain-Release code to ARC?

查看:127
本文介绍了如何自动将手动保留释放代码转换为ARC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为iOS 4编写了数千行代码。代码库包含许多对 retain release 的调用,当项目更新到iOS 5和ARC时会导致错误。

I have thousands of line of code written for iOS 4. The codebase contains many calls to retain and release, which cause errors when the project is updated to iOS 5 and ARC.

有没有办法自动转换手动保留释放(MRR) )代码自动引用计数(ARC)?

Is there a way to automatically convert Manual Retain-Release (MRR) code to Automatic Reference Counting (ARC)?

推荐答案

在Xcode 6+中,命令现在是:

In Xcode 6+, the command is now:

编辑>转换>目标-C ARC ......

这篇关于如何自动将手动保留释放代码转换为ARC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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