iPhone - ignoring the second touch on an area
<p>I have a view that the users are allowed to finger paint. The code is working perfectly if the area is touched with one finger. For example: I touch it with one finger and move the finger. Then, a line is drawn as I move the first finger. If I touch with a second finger the same view, the line that was being drawn by the first finger stops. </p>

<p>I would like to ignore any touch beyond the first, i.e., to track the first touch but ignore all others to the same view.</p>

<p>I am using touchesBegan/moved/ended.</p>

<p>I have used this to detect the touches</p>

<pre><code>UITouch *touch = [[event allTouches] anyObject];
lastPoint = [touch locationInView:myView];
</code></pre>

<p>I have also tried this </p>

<pre><code>lastPoint = [[touches anyObject] locationInView:myView];
</code></pre>

<p>but nothing changed. </p>

<p>How do I do that - track the first touch and ignore any subsequent touch to a view?</p>

<p>thanks.</p>

<p>NOTE: the view is NOT adjusted to detect multiple touches.</p>
