I have an imageView and i want to draw lines on image in that imageView using CGPoints but i am getting errors like: invalid context etc.. any solution to draw lines without CGContext approach.
CGContextRef cntxt = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(cntxt, p1.x, p1.y); CGContextAddLineToPoint(cntxt, p2.x, p2.y); CGContextStrokePath(cntxt); Thanks