I have a custom UITableViewCell in which I want to draw a vertical separator similar to the horizontal ones by default in iOS7. I am currently using this code when setting up a cell:
UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(cell.contentView.bounds.size.width - rightButtonWidth, 0, 1, cell.contentView.bounds.size.height)]; lineView.backgroundColor = [UIColor lightGrayColor]; lineView.autoresizingMask = 0x3f; [cell.contentView addSubview:lineView];
As you can see in the image, the default separator is displayed with a height of 1 pixel, while mine has a width of two pixels. I tried to set the width instead of 0.5, but then the line is not displayed at all.
Also the color is off, obviously not lightGrayColor . Is there a color constant in UIColor that matches? Edit: RGB color 207,207,210, which does not seem to be specified in UIColor.h .

ios uitableview ios7
pojo
source share