title: iOS - Pinch to zoom - using CGAffineTransform - to a Point
body: <p>I have a UIViewController which is calling a UIView Class, and I'm using CGAffine Transform to zoom into my UIView class instance using the following code </p>
  
  <pre><code>CGAffineTransform transform = CGAffineTransformMakeScale(recognizer.scale,    recognizer.scale);
  NSLog(@"Pinch scale: %f", recognizer.scale);
  float scale = recognizer.scale;
  float SCALE_MIN = 1.0f;
  float SCALE_MAX = 3.0f;
  . . . 
  </code></pre>
  
  <p>This Basic code, works! (some code has been omitted)</p>
  
  <p>The problem now is regardless of where on the screen I "pinch" the file always zooms from the middle of the file, not at the location as where I am pinching  . .  </p>
  
  <p>Any suggestions on how I can get it to zoom into the exact location pinched ? </p>