//The following code moves a view up 60 pixels and stops. CABasicAnimation *theAnimation; theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.y"]; theAnimation.delegate =?self; theAnimation.duration = 1; theAnimation.repeatCount = 0; theAnimation.removedOnCompletion = FALSE; theAnimation.fillMode = kCAFillModeForwards; theAnimation.autoreverses =?NO; theAnimation.Value = [NSNumber?numberWithFloat:0]; theAnimation.toValue = [NSNumber?numberWithFloat:-60]; [self.view.layer addAnimation:theAnimation forKey:@"animateLayer"];