Try this:
CGContextSetShouldAntialias(context, NO);
CGContextSetLineWidth(context, .5);
CGPoint hPoints[2];
hPoints[0] = CGPointMake(10, 22.0);
hPoints[1] = CGPointMake(100, 22.0);
CGContextAddLines(context, hPoints, 2);
CGPoint vPoints[2];
vPoints[0] = CGPointMake(10, 22.0);
vPoints[1] = CGPointMake(10, 42.0);
CGContextAddLines(context, vPoints, 2);
CGContextStrokePath(context);
If you draw a line and a point is a fraction then it will give a faint line. Hope this helps.. :)
EDIT:
Here is the link you are looking for I think. Read Points Versus Pixels. It describe the problem you are facing.