Xcode 智能感知彩色框中字母的含义,如 f、T、C、M、P、C、K、# 等 [英] Xcode intellisense meaning of letters in colored boxes like f,T,C,M,P,C,K,# etc

查看:33
本文介绍了Xcode 智能感知彩色框中字母的含义,如 f、T、C、M、P、C、K、# 等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我开始使用 Xcode 4 来开发 iOS 应用程序.

Recently, I have started using Xcode 4 for developing iOS apps.

在 Xcode 智能感知的自动完成框中,在每个建议之前的彩色框中都有一些字母.我知道它们代表我们正在输入的单词的属性,例如 f、T、C、M、P、C、K、# 等.

In Xcode intellisense's autocomplete box, there are some letters in colored boxes before every suggestion. I know that they represent the property of the word we are typing like f,T,C,M,P,C,K,# etc.

是否有某种词汇表可以快速找到它们的含义?

Is there some kind of glossary available to find their quick meanings?

f、C、T、# 的含义是可以理解的(函数、类等),但还有很多我不知道的其他含义.我认为这些字母在 Visual Studio、Netbeans 等所有 IDE 中都是标准的.如果我错了,请纠正我.

Meanings of f,C,T,# are understandable (function, class etc) but there are many others which I dont know. I assume these letters are standard across all IDEs like Visual Studio, Netbeans etc. Correct me if I am wrong.

请提出建议.

推荐答案

在 Xcode 中,这称为代码感知".而这些图标也存在于 Xcode 3 中.这些图标也用于符号导航.

In Xcode this is called "Code Sense". And these icons also exist in Xcode 3. These icons are also used in symbol navigation.

红色:宏

  • = 宏(想想 #define)

棕色:核心数据/命名空间

  • = 建模 class
  • = 建模 method
  • = 建模p属性

  • = modeled class
  • = modeled method
  • = modeled property

= C++ n空间

橙色:别名类型

  • = Objective-C category
  • = enum
  • = typedef/typealias
  • = Swift ex张力
  • = Objective-C category
  • = enum
  • = typedef / typealias
  • = Swift extension

绿色:变量

  • = binding
  • = function
  • = f字段
  • = c即时
  • = l局部变量
  • = IBOutlet
  • = v变量(可以是 ivar、全局变量、局部变量等)
  • = 参数(想想 f(x))
  • = binding
  • = function
  • = field
  • = constant
  • = local variable
  • = IBOutlet
  • = variable (can be ivar, global var, local var, etc.)
  • = parameter (think f(x))

蓝色:方法

  • = IBA动作
  • = m方法
  • = p属性
  • = IBAction
  • = method
  • = property

紫色:聚合类型

  • = class(Objective-C、Swift 或 C++)
  • = class extension
  • = Objective-C/Swift protocol
  • = struct
  • = union
  • = class (Objective-C, Swift or C++)
  • = class extension
  • = Objective-C/Swift protocol
  • = struct
  • = union

灰色:片段

  • = 片段

图标:#pragma mark 或评论

  • = !!!: ...
  • = FIXME: ...
  • = ???: ...
  • = TODO: ...
  • = MARK: ...

您应该能够从 /Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/Xcode.SourceCodeSymbolKind.*.Icon.tiff* 的文件名中查找含义.

You should be able to look up the meanings from the filenames from /Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/Xcode.SourceCodeSymbolKind.*.Icon.tiff*.

在更高版本的 Xcode 中,路径移至 /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Resources/Assets.car,请参阅 在IOS中分析Assets.car文件关于如何从*.car中提取图像

In later versions of Xcode, the path is moved to /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Resources/Assets.car, see Analysing Assets.car file in IOS on how to extract the images from the *.car

这篇关于Xcode 智能感知彩色框中字母的含义,如 f、T、C、M、P、C、K、# 等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆