hi, i'm using this function to create movement, how do i stop the movement? i want it to restore to the start point. thanks.
[NSTimer scheduledTimerWithTimeInterval:0.02 target:self selector:@selector(shuffleOnTimer) userInfo:nil repeats:YES];
-(void) shuffleOnTimer {
jb.center = CGPointMake(jb.center.x+pos1.x,jb.center.y+pos1.y);
if(jb.center.x > 60 || jb.center.x < 0)
pos1.x = -pos1.x;
if(jb.center.y > 240 || jb.center.y < 100)
pos1.y = -pos1.y;}