加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

objective-c – 转换到ARC的工具

发布时间:2020-12-14 19:27:04 所属栏目:百科 来源:网络整理
导读:我想将我的应用程序转换为ARC.我可以将Objective-C自动引用计数更改为YES,但不会自动删除版本保留等. Transitioning to ARC Release Notes声明: Xcode has a new tool that automates the mechanical parts of the ARC conversion (such as removing retain
我想将我的应用程序转换为ARC.我可以将Objective-C自动引用计数更改为YES,但不会自动删除版本保留等.

Transitioning to ARC Release Notes声明:

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中调用此工具?

解决方法

哦,我刚刚发现它:

Convert > To Objective-C ARC

我首先检查了Xcode的帮助,但是找不到它.

enter image description here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读