Alejandra Alejandra - 3 months ago 26
iOS Question

What is the UIColor of the default UITableView separator?

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.

Answer

… in terms of CGContextSetRGBStrokeColor it should be:

CGContextSetRGBStrokeColor (
   CGContextRef c,
   224.0/255.0,
   224.0/255.0,
   224.0/255.0,
   CGFloat alpha
);

Quite simple and hopefully a solution for your problem.

Comments