What is the UIColor of the default UITableView separator?

前端 未结 12 1831
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 15:09

Can anyone tell me the UIColor name or exact RGBA for the default iPhone UITableView separator?

It looks like a light gray color, but it\'s not [UIColor lightGrayC

12条回答
  •  忘掉有多难
    2021-01-31 15:16

    FWIW:

    UIColor *defaultSeparatorColor = [UIColor colorWithRed:0.783922f green:0.783922f blue:0.8f alpha:1.0f];

    This was found simulating iOS 9.0 -- and logging out the floating point values that a UITableView separatorColor has by default. I do not find that this matches any of the values from the other answers, but rather exacts the result of the code in the other answer here where the separatorColor is set via creation of a UITableView *tempTable.

提交回复
热议问题