将非ARC转换为ARC项目而不重新创建它?
问题描述:
我只是想知道是否可以将非ARC项目转换为ARC而不重新创建它?
谢谢
I'm just wondering if it's possible to convert a non-ARC project to ARC without recreate it at all ? Thank you
答
使用Xcode 7,您可以使用编辑|转换|转换为Objective-C ARC菜单。
With Xcode 7 you use the Edit | Convert | Convert to Objective-C ARC menu.
Pre-Xcode 7:
Pre-Xcode 7:
在Xcode中,使用Edit |重构|转换为Objective-C ARC菜单。无需重新创建项目。
In Xcode, use the Edit | Refactor | Convert to Objective-C ARC menu. No need to recreate the project.