first i want to clear that my English is not so good.
Here is my code to display line on UIView object
I am using XCode 10.5 Cocoa Touch App.
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 3.0);
CGContextSetRGBStrokeColor(context, 1.0, 0.0, 0.0, 1.0);
CGContextMoveToPoint(context, 10.0, 30.0);
CGContextAddLineToPoint(context, 310.0, 30.0);
CGContextStrokePath(context);
[self setNeedsDisplay];
its not displaying line.
If anyone have idea, pliz help me & not interested in reading any comments...
Here is my code to display line on UIView object
I am using XCode 10.5 Cocoa Touch App.
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 3.0);
CGContextSetRGBStrokeColor(context, 1.0, 0.0, 0.0, 1.0);
CGContextMoveToPoint(context, 10.0, 30.0);
CGContextAddLineToPoint(context, 310.0, 30.0);
CGContextStrokePath(context);
[self setNeedsDisplay];
its not displaying line.
If anyone have idea, pliz help me & not interested in reading any comments...