swift - Swift playground 中 "S"中出现的 "T"、 "Pr"和 "auto completion box"图标是什么意思?

标签 swift swift-playground

<分区>

问题

Swift playground中“自动完成框”中出现的“S”、“T”、“Pr”图标是什么意思?还有其他种类吗?

谢谢!

Screenshot

答案(用于搜索引擎索引)

C  : Classes
Pr : Protocols
f  : Functions
S  : Structs
U  : Unions
E  : Enums
T  : Types
V  : Globals

最佳答案

这些是符号导航器中出现的相同缩写,它们是为您定义的(如随附的屏幕截图所示):

enter image description here

因此,如表所示,C 表示类,Pr 表示协议(protocol),依此类推。

关于swift - Swift playground 中 "S"中出现的 "T"、 "Pr"和 "auto completion box"图标是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29482419/

相关文章:

php - POST 不工作 SWIFT PHP

arrays - 在 Swift 中从文本文件加载数值数组

ios - swift/iOS : Generics Error: protocol requires nested type 'V' ; do you want to add it?

objective-c - #import "Project-Swift.h"文件不刷新

swift - 无法暗示 _Reflectable 协议(protocol)

swift - Swift Playground 中的 PDF 生成

ios - 为什么Xcode Playground通过类似iPad的Simulator来执行liveView?

ios - 这是一个错误还是我遗漏了什么? (类型转换 UISplitViewController)

ios - 当用户更改位置时如何使 map 居中

ios - 在后台模式下监听设备摇动事件