Tool for transitioning to ARC

只愿长相守 提交于 2019-12-10 13:08:46

问题


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.

The Transitioning to ARC Release Notes states:

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.

How do I invoke this tool in Xcode?


回答1:


Oh man I just found it:

Convert > To Objective-C ARC

I checked in Xcode's help first where I could not find it.



来源:https://stackoverflow.com/questions/8969644/tool-for-transitioning-to-arc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!