title: Pinch Zoom - not able to keep the image position fixed on zooming
body: <p>I am new to iphone development. I want zoom an imageview , I am using the following code,</p>
  
  <pre><code>- (void)viewDidLoad
  {
  
      [super viewDidLoad];
  
  // Do any additional setup after loading the view, typically from a nib.
  
      self.scrollViewOutlet.minimumZoomScale=0.5;
  
      self.scrollViewOutlet.maximumZoomScale=4.0;
  
      self.scrollViewOutlet.contentSize=self.imagetobeZoomed.image.size;
  
      self.scrollViewOutlet.clipsToBounds=YES;
  
      self.scrollViewOutlet.delegate=self;
  
  }
  
  -(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{
  
  
      return self.imagetobeZoomed;
  }
  </code></pre>
  
  <p>By using the code above I am able to zoom the image , but my problem is my image runs to the bottom left corner on zooming . That is I am not able to keep my image position fixed to the center of the screen.</p>
  
  <p>I want image position to be remain fixed on zooming . Any help on this?</p>