【发布时间】:2012-01-30 13:43:06
【问题描述】:
可能重复:
What does the 'k' prefix indicate in Apple's APIs?
Objective C - Why do constants start with k
例如,result codes defined for Audio Format Services:
kAudioFormatUnspecifiedErrorkAudioFormatUnsupportedPropertyError- 等等……
前面的 k 代表什么?我一直假设为键,因为此类常量通常用作字典中的键,但这些结果代码是常量只是返回值的示例,而不是(据 API 的客户端可以确定)键。
【问题讨论】:
-
你可以在这里找到答案:stackoverflow.com/questions/500030/…