Trying to write a simple app to allow user to drag a image
<p>I'm trying to write an app to allow a person to drag around an image of the earth.</p>

<p>The method <code>touchesmoved</code> gets called when the user begins to drag his feet, but <code>[[ event allTouches] anyObject]</code> never returns the <code>earth</code> object, so it never gets dragged,</p>

<pre><code>-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {

    UITouch *touch=[[ event allTouches] anyObject];

    if ( [touch view] == earth )
    {
        CGPoint location = [ touch locationInView: self.view];
        earth.center=location;          
    }
}
</code></pre>
