Animation to and from value
<p>I am trying to animate a label across the screen however I cannot seem to get it work properly.  Currently it animates off the view into the other views.</p>

<p>Also I cannot "stop" the animation when needed.  I am using it in a music player to scroll the track name across the UIView and when I tap Next or Prev it must stop mid-animation and start again.</p>

<pre><code>- (void)startAnimation {

    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:10];   
    [UIView setAnimationDelegate:self]; 
    [UIView setAnimationDidStopSelector:@selector(animationDidStop:)];

    CGRect frame = trackName.frame;
    frame.origin.x = -50;
    trackName.frame = frame;

    [UIView commitAnimations];
}

- (void)animationDidStop:(id)sender {
    NSLog(@"animationDidStop");

    CGRect frame = trackName.frame;
    frame.origin.x = 194;
    trackName.frame = frame;

    [self startAnimation];
}
</code></pre>
