title: Xcode: Zoom image in a scroll view
body: <p>I made alot of research about this but nothing works for me. Here is my problem:</p>
  
  <p>I want my image called bildfraga to be zoomable. It is placed in the scrollview called scroll. I am able to scroll the picture, but not zoom it.</p>
  
  <p>This is my code when the image is shown:</p>
  
  <pre><code>  bildfraga = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"dtk2.png"]];
  scroll.contentSize = bildfraga.frame.size;
  [scroll addSubview:bildfraga];
  scroll.minimumZoomScale = 0.4;
  scroll.maximumZoomScale = 4.0;
  [scroll setZoomScale:scroll.minimumZoomScale];
  
  - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scroll{
  return bildfraga;
   } 
  </code></pre>
  
  <p>But when I try to build this, I get an error saying something like: "Use of undeclared identifier 'viewForZoomingInScrollView'".</p>
  
  <p>Thanks in advance!</p>
  
  <p>/A noob</p>