public override void TouchesEnded(NSSet touches, UIEvent evt) { base.TouchesEnded(touches, evt); var loc = (touches.AnyObject as UITouch).LocationInView(this); CurrentStroke.Points.Add(new Point(loc.X, loc.Y)); CurrentPathView.AddLineTo(loc); Strokes.Add(CurrentStroke); drawPath(); CurrentPathView.Clear(); SetNeedsDisplay(); }
public void Clear() { Strokes.Clear(); CurrentPathView.Clear(); drawPath(); }