title: Building a Camera Application... UIScrollView will not zoom
body: <p>I'm building a camera application, and I can't get the zooming on the image to work. I honestly don't know where to go from here, I'm sure it's some dumb mistake that I'm missing though. The app sets the chosenImageView to the workingImage (picture from the camera). When I try to zoom, nothing happens.</p>
  
  <p>ViewController.h</p>
  
  <pre><code>@interface ViewController : UIViewController &lt;UIActionSheetDelegate, UIImagePickerControllerDelegate, UIScrollViewDelegate&gt;
  
  @property (strong, nonatomic) UIImage *workingImage;
  @property (weak, nonatomic) IBOutlet UIImageView *chosenImageView;
  @property (weak, nonatomic) IBOutlet UIScrollView *imageScroller;
  
  -(IBAction)cameraButtonPressed;
  
  @end
  </code></pre>
  
  <p>ViewController.m</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
      self.imageScroller.minimumZoomScale = 0.01f;
      self.imageScroller.maximumZoomScale = 6.0f;
      self.imageScroller.contentSize = self.imageScroller.frame.size;
      self.imageScroller.scrollEnabled = YES;
  
      self.navigationController.navigationBar.tintColor = [UIColor blackColor];
  
  }
  
  -(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
  {
      return self.chosenImageView;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ovHbE.png" alt="Hierarchy of my IB Items"></p>
  
  <p><img src="https://i.stack.imgur.com/RtOo9.png" alt="Useless picture of the interface builder section with the UIScrollView/UIImageView"></p>