When should I use UITableViewCellSeparatorStyleSingleLineEtched?

I see a description of what the UITableViewCellSeparatorStyleSingleLineEtchedApple class reference looks like and can see it by running the application. But I can’t find a mention of whenuse UITableViewCellSeparatorStyleSingleLineEtchedinstead UITableViewCellSeparatorStyleSingleLine.

In other words, what does this dashed line mean to the user? Can someone explain?

+3
source share
3 answers

Part of the β€œwhy” is that ordinary table cells have a white background, and the etching look is not suitable, while the section heading cell has a gray background and adding a little selection makes it pop up. At least my interpretation.

+3

Apple:

UITableViewCellSeparatorStyleSingleLine

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.

UITableViewCellSeparatorStyleSingleLineEtched

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.

, , SingleLineEtched , ,

+4

Engraved view for iPad tableViews, which does not have the background of the stripes that you see on the iPhone. This, at least, looks like a convention.

0
source

Source: https://habr.com/ru/post/1749781/


All Articles