当我们在NSInteger
中输入Xcode
时,会在其前面显示一个符号:C,#,T等。
那符号代表的是什么?
我分享截图,请有人指导我吗?
答案 0 :(得分:10)
以下是清单:
T - typedef
C - Class
# - #define
V - Property
K - Constant
f - C Function
M - Objective C Method
答案 1 :(得分:4)
以下是一个更完整的符号列表,取自 this 问题。
# = macro (think #define)
C = modeled class
M = modeled method
P = modeled property
N = C++ namespace
C̲ = Objective-C category
E = enum
T = typedef
B = binding
ƒ = function
F = field
K = constant
L = local variable
O = IBOutlet
V = variable (can be ivar, global var, local var, etc.)
x = parameter (think f(x))
A = IBAction
M = method
P = property
C = class (Objective-C or C++)
₠ = class extension
Pr = Objective-C protocol
S = struct
U = union
答案 2 :(得分:0)
# - Macro define
V - Property
M - 方法
K - 常量变量
f - 功能
T - typedef enum
C - Class
{} - 实例类型块