title: how to implement pinch in pinch out in uiimageview which is inside uiscrollview in iphone?
body: <p>Hello I have implemented photoslide show using apple's scrolling example.Below is code:</p>
  
  <pre><code>- (void)viewDidLoad {
  
      appDelegate=[(FoodAppDelegate *)[UIApplicationsharedApplication]delegate];
      kNumImages=[parray count];
      self.view.backgroundColor=[UIColor viewFlipsideBackgroundColor];
      [scrollView1 setBackgroundColor:[UIColor blackColor]];
      [scrollView1 setCanCancelContentTouches:NO];
      scrollView1.indicatorStyle=UIScrollViewIndicatorStyleWhite;
      scrollView1.clipsToBounds=YES;
      scrollView1.scrollEnabled=YES;   
          scrollView1.pagingEnabled=YES;
      scrollView1.minimumZoomScale=0.5;
      scrollView1.delegate=self;
      scrollView1.maximumZoomScale=6.0;
      scrollView1.bouncesZoom=YES;
      NSLog(@"view did load called");
      NSUInteger i;
      for(i=0;i&lt;kNumImages;i++)
      {
          NSLog(@"for loop of view did load called");
          NSURL *url=[NSURL URLWithString:[parray objectAtIndex:i]];
          NSLog(@"url object at index %i is %@",i,url);
          UIImage *image=[UIImage imageWithData:[NSData dataWithContentsOfURL:url]];
          imageView=[[UIImageView alloc] initWithImage:image];
          CGRect rect=imageView.frame;
          rect.size.height=kScrollObjHeight;
          rect.size.width=kScrollObjWidth;
          imageView.frame=rect;
          imageView.tag=i+1;
          [scrollView1 addSubview:imageView];
  
      }
      [scrollView1 setContentSize:CGSizeMake(imageView.frame.size.width, imageView.frame.size.height)];
      [self layoutScrollImages];
      [super viewDidLoad];
  }
  
  
  
  -(void)layoutScrollImages
  {
      int c=appDelegate.selectedphoto-1;
      kNumImages=[parray count];
      view=nil;
      NSArray *subviews=[scrollView1 subviews];
      CGFloat curXLoc=0;
      for(view in subviews)
      {
          if([view isKindOfClass:[UIImageView class]] &amp;&amp; view.tag&gt;0)
          {
              CGRect frame=view.frame;
              frame.origin=CGPointMake(curXLoc, 0);
              view.frame=frame;
              curXLoc+=(kScrollObjWidth);
          }}
      [scrollView1 setContentSize:CGSizeMake((kNumImages *kScrollObjWidth),200)];
      CGPoint lastFrame = CGPointMake(( c* kScrollObjWidth), 0.0f);
      [scrollView1 setContentOffset:lastFrame];
      scrollView1.showsHorizontalScrollIndicator=NO;
      scrollView1.showsVerticalScrollIndicator=NO;
  
  }
  </code></pre>
  
  <p>Now i want to implement zoom in zoom out.How can i do that?any sample code or example?</p>