title: Pinch Zoom in and Zoom Out in Objective c
body: <p>How to integrate the pinch zoom and zoom out in our apps, i am using imageview on scrollView
   and my code is: </p>
  
  <pre><code>- (IBAction)handlePinchGesture:(UIGestureRecognizer *) recognizer {
      if(zoomEnable == TRUE)
      {
  
          CGFloat factor = [(UIPinchGestureRecognizer *) recognizer scale];
          CGFloat lastScaleFactor = 1;
  
          //if the current factor is greater 1 --&gt; zoom in
          if (factor &gt; 1) {
              scrollView.transform = CGAffineTransformMakeScale(lastScaleFactor + (factor-1),lastScaleFactor + (factor-1));
              scrollView.scrollEnabled = YES;
  
          } else {
  
              [UIView beginAnimations:@"animation" context:nil];
              [UIView setAnimationDuration:0.5];
              [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:scrollView cache:NO];
              scrollView.transform = CGAffineTransformMakeScale(1,1);     
              [UIView commitAnimations];
  
          }
          isScrollable = TRUE;
      }
  
  }
  </code></pre>
  
  <p>Its start zooming every time from start i want if i zoom some then again it start when i stop zoom. Any help is highly Appreciated</p>
  
  <p>Thanks; </p>