is it possible to draw Ellipse through UITouchMoved in iph开发者_运维百科one sdk as we do in MSPaint?Any example please?
Just save the rect in the touch moved delegate, and draw an ellipse in the rect (maybe using CGContextStrokeEllipseInRect) whenever the view's drawRect gets called. Call setNeedsDisplay to say that the drawRect needs to be called sometime before returning to the run loop.
Guessing that you mean ellipse rather than eclipse? If so, use +[UIBezierPath bezierPathWithOvalInRect:].
精彩评论