代码之家  ›  专栏  ›  技术社区  ›  Steven Fisher

我应该什么时候使用UITableViewCellSeparatorStyleSingleLineEtched?

  •  3
  • Steven Fisher  · 技术社区  · 15 年前

    我看到了什么的描述 UITableViewCellSeparatorStyleSingleLineEtched 适当的 UITableViewCellSeparator样式单线蚀刻 而不是 UITableViewCellSeparatorStyleSingleLine .

    给用户?有人能解释一下吗?

    3 回复  |  直到 15 年前
        1
  •  3
  •   lucius    15 年前

    “为什么”部分是因为普通表格单元格的背景是白色的,蚀刻的外观不合适,而节标题单元格的背景是灰色的,添加一点高光会使其弹出。至少,这是我的解释。

        2
  •  4
  •   vodkhang    15 年前

    UITableViewCellSeparator样式单行

    The separator cell has a single line running across its width. This is the default value
    
    Available in iPhone OS 2.0 and later.
    
    Declared in UITableViewCell.h.
    

    UITableViewCellSeparator样式单线蚀刻

    The separator cell has double lines running across its width, giving it an etched look. This style is currently only supported for grouped-style table views.
    
    Available in iPhone OS 3.2 and later.
    
    Declared in UITableViewCell.h.
    

        3
  •  0
  •   Danilo Campos    14 年前

    蚀刻的外观适用于iPad的tableview,它没有你在iPhone上看到的细条纹背景。至少,这似乎是惯例。