What is the UIColor of the default UITableView separator?

Viewed 31883

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 lightGrayColor]; it's lighter than that.

13 Answers

In Swift 3.0.1, you can do something like this

yourView.backgroundColor = UITableView().separ‌​atorColor

Guys it's very simple:

UITableView().separatorColor

In iOS 15.5, Separator Color Value is:

let separatorColor = UIColor.separator
// R:0.24, G:0.24, B:0.26, A:0.29

By the way, you can get this value by "Debug View Hierarchy" in Xcode.

Related