I'm using drawRect
to create a line. Based on the "4inch screen" my line is the correct place. When ran on a "3.5 inch screen" the line is lower down and in the wrong place.
- (void)drawRect:(CGRect)rect
{
CGContextRef firstLine = UIGraphicsGetCurrentContext();
CGContextMoveToPoint(firstLine, 15, 389);
CGContextAddLineToPoint(firstLine, 320, 389);
CGContextStrokePath(firstLine);
CGContextSetLineWidth(firstLine, 1.1);
}
I know I need to do something with self.frame.heigh
to make it dynamic to screen size but don't know where to put it.