title: How do I animate the movement of a view in iOS?
body: <p>I'm a very beginner programmer and I'm trying to find the easiest way to do this. I have never done anything with animation before. I want to try to animate an image in my app, and I've run into some problems. This is the code someone previously suggested I use (from a different question):</p>
  
  <pre><code>imageView.image = yourLastImage;  
  // Do this first so that after the animation is complete the image view till show your last image.
  
  NSArray * imageArray  = [[NSArray alloc] initWithObjects:
  [UIImage imageNamed:@"image1.png"],  
  [UIImage imageNamed:@"image2.png"],
  [UIImage imageNamed:@"image3.png"],                         
  [UIImage imageNamed:@"image4.png"],
  nil]; 
  
  // Note: here you may instead want to use something like [UIImage imageWithContentsOfFile:[self localImagePath:NO]] instead depending upon your targeted iOS version.
  
  
  
  UIImageView * animatedImageView = [[UIImageView alloc] initWithFrame:
      CGRectMake(100, 125, 150, 130)];
  animatedImageView.animationImages = imageArray;
  animatedImageView.animationDuration = 1.1;
      myAnimation.animationRepeatCount = 1;
  animatedImageView.contentMode = UIViewContentModeBottomLeft;
  
  [self.view addSubview:animatedImageView];
  [animatedImageView startAnimating];
  </code></pre>
  
  <p>Well, first off, is this even practical? I want to animate something that goes from the middle of the screen to the bottom of the screen. Does that mean I have to have 500 images, each 1 pixel away from each other? What is the optimal pixel interval, so that it looks fluid and even and doesn't require a ton of work? Is there a better way to animate than the way above? Is there a program that helps make animations that you can later add into Xcode?</p>
  
  <p>Also, can someone please explain the code above? I'm new to animation, I don't really understand what all that means. </p>
  
  <p>Sorry if this is a stupid question, I said at the opening that I am a beginner. Thanks for any help you may provide!</p>