0

我刚开始使用 XCode 5,我对这个栏和渐变很好奇。在此处输入图像描述

我不能说我记得在第 5 版之前看到过。我只是在进行一些分析后才注意到它,尽管它可能一直存在。据我所知,即使在 4.5 版中。

每个代码块的梯度似乎不同,所以我认为它代表了在该代码块中花费的时间。浏览代码,在有循环的区域似乎更暗,这就是我有这个假设的原因。

4

1 回答 1

6

I'm pretty sure that it is just a visual aid to let you know what scope you are in. If you mouse-over it, Xcode will highlight the scope, and if you click, all the code between the braces is hidden.

EDIT: It has been in XCode since at least version 4.

于 2013-10-09T05:22:14.047 回答