English 中文(简体)
是否有办法仅凭单使用ARC移民工具?
原标题:Is there a way to use the ARC migration tool on a per-file basis only?

I ve discovered some inconsistencies when using the ARC migration tool multiple times on the whole project.

例如:

- (void)dealloc {
    [ivar release], ivar = nil;
}

第一种代号是:

- (void)dealloc {
    ivar = nil;
}

第二种电离破碎了——听起来。 假定在-dealloc中确定批号为零是毫无意义的,因为航道是自动的,因此,空研中心首先留下了<代码>ivar = nil。

为防止可能出现奇怪的弊端,是否有办法只将阿革委移徙工具用于一个特别档案,而不是整个项目?

最佳回答

选择 Edit > Redin > Convert to Target-C ARC, a summary, with a list of their project sget. 在显示来源档案清单的目标旁边点披露三角。 从那以后,你可以选择这些档案,以便转换为非洲资源中心。

“enterography

问题回答

I don t believe so. You don t have to do much to "convert" a project to use ARC support. Remove all dealloc, release, and nil (where needed) calls.

在转换之后,不应出现奇怪的 b,因为汇编者会照顾到你们的一切,而不是想象XCode。





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签