title: how to Zooming in/zooming out of images in iPad?
body: <p>I want to give automatic zoom in and zoom out to image in ipad application. For example in the splash screen it should display image as original size and after some time it should start zooming out automatically. This will give it an animated zoom in/out look.</p>
  
  <p>How can we do that with UIImageView in iPad?</p>
  
  <p>Thank you in advance.</p>
  
  <hr>
  
  <p>ScrollImageController.h</p>
  
  <p><code>
  @interface ScrollImageViewController : UIViewController  {</p>
  
  <p>}
  @end
  </code></p>
  
  <p>ScrollImageController.m<br>
  <code>
  - (void)viewDidLoad
  {</p>
  
  <pre><code>[super viewDidLoad];
  UIScrollView *scrollView = [[UIScrollView alloc]   initWithFrame:self.view.frame];
  scrollView.contentSize = CGSizeMake(847, 800);
  UIImage *image = [UIImage imageNamed:@"just.jpg"];
  UIImageView *imageView = [[UIImageView alloc] initWithImage: image];
  [image release];
  [scrollView addSubview:imageView];
  [imageView release];
  [self.view addSubview:scrollView];
  
  
  [scrollView setZoomScale:2.0 animated: YES];
  [scrollView release];
  </code></pre>
  
  <p>}</p>
  
  <p></code></p>