Remove corner shadow/offset in grouped UITableView

前端 未结 4 939
[愿得一人]
[愿得一人] 2021-02-05 18:48

When a UITableView of type UITableViewStyleGrouped has a background view that is a non-default color or pattern image on the iPad, the rounded corners have an ugly extra line, s

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 19:14

    The default separator style for iPad is UITableViewCellSeparatorStyleSingleLineEtched. This is different from the iPhone's default of UITableViewCellSeparatorStyleSingleLine.

    If you would like to remove the bevel, set the separatorStyle of the view to UITableViewCellSeparatorStyleSingleLine.

    Note that the default separator style in iOS 5 for both devices is SingleLineEtched.

提交回复
热议问题