title: ios animation one by one
body: <p>I have some views and I want to display them one by one . I can't find how to do this . Instead , if I use the following code , all the views appear at once . </p>
  
  <pre><code>NSTimer *timer1 = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showStar2) userInfo:nil repeats:NO];
          NSTimer *timer2 = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showStar3) userInfo:nil repeats:NO];
          NSTimer *timer3 = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showStar4) userInfo:nil repeats:NO];
          NSTimer *timer4 = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showStar5) userInfo:nil repeats:NO];
  
          [timer1 fire];
          [timer2 fire];
          [timer3 fire];
          [timer4 fire];
  
  
  -(void)showStar2
  {
  
      [UIView beginAnimations:@"anim1" context:NULL];
      [UIView setAnimationDuration:0.5];
      [stars[1] setAlpha:1];
      [UIView commitAnimations];
  }
  </code></pre>
  
  <p>All the showStar functions are identical except the lines  </p>
  
  <pre><code>[UIView beginAnimations:@"anim1" context:NULL];
  [stars[1] setAlpha:1];
  </code></pre>
  
  <p>which have different arguments . <code>stars</code> is an array of <code>UIImageView</code>'s.
  Any suggestion is welcome .</p>