how to create a path using coregraphics?
i want to create a path.something like i touch the screen and draw line in touchmove event.when line intersect from starting point.fill that path using any colour. now see in the image i've drawn a line.i just want to detect if line intersects again to start point.then fill that path with my own desired color.also i m using core graphics to draw line but it's very slow on real device.could you tell me a way to improve speed? Header: #import <UIKit/UIKit.h> @interface myView : UIView { CGMutablePathRef path; CGPathRef drawingPath; CGRect start; BOOL outsideStart; } @end Implementation: #import