【问题标题】:What is that symbol before NSInteger? [duplicate]NSInteger 之前的那个符号是什么? [复制]
【发布时间】:2014-05-14 07:09:05
【问题描述】:

当我们在Xcode 中输入NSInteger 时,它前面会显示一个符号,例如:C、#、T 等。

那么这个符号代表什么?

我分享一个截图,请有人指导我吗?

【问题讨论】:

    标签: ios


    【解决方案1】:

    这里是列表:

    T - typedef
    C - Class
    # - #define
    V - Property
    K - Constant
    f - C Function
    M - Objective C Method
    

    【讨论】:

      【解决方案2】:

      这里是更完整的符号列表,取自 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
      

      【讨论】:

      • 如果您认为之前已经回答了确切的问题,您可以留下评论或标记为重复。无需发布相同问题答案的精确副本。 - 顺便提一句。当前 Xcode 版本不存在答案末尾给出的路径。
      • 更新了关于路径的答案。从现在开始,我会处理这些重复的东西。感谢您的提示!
      【解决方案3】:
      1. # - Macro define

      2. V - 属性

      3. M - 方法

      4. K - 常量变量

      5. f - 函数

      6. T - typedef 枚举

      7. C - 类

      8. {} - 实例类型块

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-07-27
        • 2017-04-11
        • 2012-11-03
        • 2016-10-10
        • 2013-12-13
        • 2014-04-14
        • 1970-01-01
        • 2012-07-02
        相关资源
        最近更新 更多