NSInteger之前是什么符号?
当我们在Xcode
键入NSInteger
时候,一个符号显示在它之前:C,#,T等
那么这个符号代表什么?
我分享一个截图,请有人可以指导我?
这里是列表:
T - typedef C - Class # - #define V - Property K - Constant f - C Function M - Objective C Method
这里是一个更完整的符号列表,取自这个问题。
红色:macros
# = macro (think #define)
Brown:核心数据/命名空间
C = modeled class M = modeled method P = modeled property N = C++ namespace
橙色:别名types
C̲ = Objective-C category E = enum T = typedef
绿色:variables
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
紫色:聚合types
C = class (Objective-C or C++) ₠ = class extension Pr = Objective-C protocol S = struct U = union
-
# - Macro define
-
V – 财产
-
M – 方法
-
K – 常量variables
-
f – function
-
T – typedef枚举
-
C级
-
{} – 实例types块