title: zoom in UIImageView and UIImageView.center
body: <p>Trying to zoom in / out an imageView.</p>
  
  <p>i've managed that successfully so now i'm trying to place some buttons on the view and when button tapped to zoom on that area.</p>
  
  <p>How can i implement that?</p>
  
  <p>here is my code so far</p>
  
  <pre><code>-(void)zoomHere:(UIButton *)sender{
  
      NSLog(@"zoom in");
      //[self performSelector:@selector()
      //         withObject:nil
      //         afterDelay:1.6f];
  
  
      CGAffineTransform transformer = CGAffineTransformScale(imageView.transform, 1.05, 1.05);
  
  
  
      if (transformer.a &lt; 5) {
          [UIView beginAnimations:nil context:NULL];
          [UIView setAnimationDuration: 0.2];
          imageView.transform = transformer;
          [UIView setAnimationDelegate:self];
          [UIView commitAnimations];
      }
  
  
  }
  </code></pre>
  
  <p>and the view did load </p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      UIView *buttonView = [[UIView alloc]initWithFrame:CGRectMake(00.0, 20.0, 768, 1004.0)];
  
      zoomHere = [UIButton buttonWithType:UIButtonTypeRoundedRect];
      [zoomHere addTarget:self
                 action:@selector(zoomHere:)
       forControlEvents:UIControlEventTouchDown];
      [zoomHere setTitle:@"ZoomIN" forState:UIControlStateNormal];
      zoomHere.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
      [buttonView addSubview:zoomHere];
  
      buttonView.multipleTouchEnabled = YES;
  
      [self.view addSubview:buttonView];
  
  
  }
  </code></pre>
  
  <p>It still zoom in but not on that area where the button sits on screen!</p>