Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对旧 xcode 项目的内存管理和泄漏(对象的潜在泄漏)有问题。我可以使用自动引用计数将这些项目迁移到新的 xcode4.5 以克服上述问题。如果这可能意味着我怎么能做到?这是正确的方法还是该怎么做?
是的,您绝对可以使用 Xcode 最新版本本身来做到这一点。XCode 足够智能,可以将非 ARC 更改为 ARC,并且还可以使用最新的语法。
将您的项目打开到最新版本的 Xcode,可能是 5.0.1,然后转到菜单 Edit-> Refactor-> Convert to Objective-C ARC
重构菜单下还有许多其他选项。你可以试试这些。