How to create a line width of 0.5 pixels
ios, iphone, objective-c, uitableview
Solution
You set the width as 0.5 - or to make it always 1 pixel then set it to `(1.0 / [UIScreen mainScreen].scale)`
I've done this before and it's worked fine
I think the reason you can't see it is that you are centering the line exactly in the middle of the screen, which will make the line's origin (320 - 0.5) / 2.0, being an X origin of 159.75 - the 0.75 may be messing things up - or the cell is removing the background color of your view
Problem
In iOS 7, the table view's separator line is thinner than previous iOS, and it looks like its 0.5 px width. I need to split a cell in 2, with a similar separator line (only vertically) and I want this line to be the same width as the regular separator line. So I'm wondering what is the best way to add such a line? If I use a `UIView` and set its width to 0.5 it won't be visible, and if I set its width to 1.0, then of course I will get a line width of 1.0px not 0.5px. I tried to use a resource with a retina size of 1.0px but it didn't work either