Draw Line using CGContext
I want to draw line in table view cell so that I can place textfield & switch in single cell. I increased the height of cell. How can I draw line in cell? I have subclass of UIView which contains following code //Get the CGContext from this view CGContextRef context = UIGraphicsGetCurrentContext(); //Set the stroke (pen) color CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor); //Set the width of the pen mark CGContextSetLineWidth(context, 1.0); // Draw a line //Start at this point CGContextMoveToPoint(context, 10.0, 30.0); //Give instructions to the CGContext //(move "pen"