title: Expanding and Shrinking UIView in iPhone
body: <p>I am working on an iPhone games like application, where I have to ask one question and corresponding answers on UIButoons. When user presses any button I show right and wrong image based on chosen answer. I create answer view by following code and attach it to main view:</p>
  
  <pre><code>-(void)ShowOutputImageAsAnswerView:(BOOL)correct
  {   
  
      viewTimer = [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(RemoveSubViewFromMainView) userInfo:nil repeats:YES];
      UIView  *viewOutput = [[UIView alloc]initWithFrame:CGRectMake(200, 100, 80, 80)];
      viewOutput.tag  = 400;
      viewOutput.backgroundColor = [UIColor clearColor];
      UIImageView *imgAns = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 70, 70)];
      if (correct)
      {
          imgAns.image = [UIImage imageNamed:@"correct_icon.png"];
      }
      else
      {
          imgAns.image = [UIImage imageNamed:@"wrong_icon.png"];
      }   
      [viewOutput addSubview:imgAns];
      [self.view addSubview:viewOutput];
      [self.view bringSubviewToFront:viewOutput];
  
      [imgAns release];
      [viewOutput release];   
  
  }
  </code></pre>
  
  <p>I have to show this answer view in the animated form. And this animation will start from its 0 pixel to 80 pixel. Means expanding and shrinking view. </p>
  
  <p>How can it be implemented?
  Can it directly be used with imgAns?</p>