![]() getValue:&firstPoint] ĬGContextMoveToPoint(context, firstPoint.x, firstPoint.y) ĬGContextSetLineCap(context, kCGLineCapRound) ĬGContextSetLineJoin(context, kCGLineJoinRound) Then I draw all the points in the array using NSMutableArray *points = Then I collect a single touch in an array with - (void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)eventĪnd when the user lefts a finger from the screen, I called - (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event I got it working but not pretty as seen hereĪnd I am looking for any suggestion to smooth the drawingīasically, what I did is when user places a finger on the screen I called - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event I am working on a sketching app on the iPhone. ![]()
0 Comments
Leave a Reply. |