How to draw line between two points with animation?
<p>I have using belo code for draw line between two points.</p>

<pre><code>#define PI 3.14159

CGContextBeginPath(ctx);

int x;
for(int y=rect.origin.y; y &lt; rect.size.height; y++)
{
    x = ((rect.size.width/4) * sin(((y*4) % 360) * PI/180)) + rect.size.width/2;

    if(y == 0)
    {
        CGContextMoveToPoint(ctx, x, y);
    }
    else
    {
        CGContextAddLineToPoint(ctx, x, y);
    }
}

CGContextStrokePath(ctx);
</code></pre>

<p>But i want to implement with animation.how it possible?can u help me?</p>
